Skip to content

Commit e85eb34

Browse files
committed
Replace spaceship prompt with pure prompt
1 parent 3d27bef commit e85eb34

File tree

2 files changed

+8
-36
lines changed

2 files changed

+8
-36
lines changed

.zshrc

+5-33
Original file line numberDiff line numberDiff line change
@@ -12,45 +12,17 @@ unset file;
1212
# Set name of the theme to load. Optionally, if you set this to "random"
1313
# it'll load a random theme each time that oh-my-zsh is loaded.
1414
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
15-
ZSH_THEME="spaceship"
15+
ZSH_THEME=""
1616

1717
plugins=(git osx zsh-syntax-highlighting)
1818

1919
# Load oh-my-zsh
2020
source $ZSH/oh-my-zsh.sh
2121

22-
###############################################################################
23-
# Spaceship Prompt #
24-
###############################################################################
25-
26-
export SPACESHIP_PROMPT_ORDER=(
27-
time #
28-
vi_mode # these sections will be
29-
user # before prompt char
30-
host #
31-
dir
32-
git
33-
line_sep
34-
jobs # Background jobs indicator
35-
exit_code # Exit code section
36-
char
37-
)
38-
39-
# USER
40-
SPACESHIP_USER_PREFIX="" # remove `with` before username
41-
SPACESHIP_USER_SUFFIX="" # remove space before host
42-
43-
# DIR
44-
SPACESHIP_DIR_PREFIX=""
45-
46-
# GIT
47-
SPACESHIP_GIT_SYMBOL=""
48-
SPACESHIP_GIT_BRANCH_PREFIX=""
49-
SPACESHIP_GIT_PREFIX=""
50-
SPACESHIP_GIT_SUFFIX=""
51-
SPACESHIP_GIT_BRANCH_SUFFIX="" # remove space after branch name
52-
SPACESHIP_GIT_STATUS_PREFIX=" "
53-
SPACESHIP_GIT_STATUS_SUFFIX=""
22+
# Pure Prompt
23+
fpath+=$HOME/.zsh/pure
24+
autoload -U promptinit; promptinit
25+
prompt pure
5426

5527
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
5628

install.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# Install oh-my-zsh
33
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
44

5-
# Install Spaceship prompt
5+
# Install Pure prompt
66

7-
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
8-
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
7+
mkdir -p "$HOME/.zsh"
8+
git clone https://github.com/sindresorhus/pure.git "$HOME/.zsh/pure"
99

1010
# Install ultimate vimrc
1111

0 commit comments

Comments
 (0)