Skip to content

Commit

Permalink
Use pure prompt
Browse files Browse the repository at this point in the history
It's async and way faster than spaceship
  • Loading branch information
MarcelRobitaille committed Jun 3, 2020
1 parent 687ec18 commit 34cd2f4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
[submodule "dotdrop"]
path = dotdrop
url = https://github.com/deadc0de6/dotdrop.git
[submodule "pure"]
path = pure
url = https://github.com/sindresorhus/pure.git
[submodule "zsh-async"]
path = zsh-async
url = https://github.com/mafredri/zsh-async.git
7 changes: 7 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ dotfiles:
- oh-my-zsh-install
- spaceship-install
- tmuxinator-completion
zsh_prompt:
src: ./pure
dst: ~/.zsh/pure
link: link
zsh_async:
src: ./zsh-async
dst: ~/.zsh/async
Expand Down Expand Up @@ -388,6 +392,7 @@ profiles:
- zathura
- zshrc
- zsh_custom
- zsh_prompt
- zsh_async
Hermes:
dotfiles:
Expand Down Expand Up @@ -435,12 +440,14 @@ profiles:
- zathura
- zshrc
- zsh_custom
- zsh_prompt
- zsh_async
marcel-VirtualBox:
dotfiles:
- vim
- zshrc
- zsh_custom
- zsh_prompt
- zsh_async
- tmux
- xbindkeys
Expand Down
1 change: 1 addition & 0 deletions pure
Submodule pure added at c42bd3
22 changes: 11 additions & 11 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
export ZSH=$HOME/.oh-my-zsh
export FPATH=/usr/share/zsh/site-functions:/usr/share/zsh/functions/Calendar:/usr/share/zsh/functions/Chpwd:/usr/share/zsh/functions/Completion:/usr/share/zsh/functions/Completion/Base:/usr/share/zsh/functions/Completion/Linux:/usr/share/zsh/functions/Completion/Unix:/usr/share/zsh/functions/Completion/X:/usr/share/zsh/functions/Completion/Zsh:/usr/share/zsh/functions/Exceptions:/usr/share/zsh/functions/Math:/usr/share/zsh/functions/MIME:/usr/share/zsh/functions/Misc:/usr/share/zsh/functions/Newuser:/usr/share/zsh/functions/Prompts:/usr/share/zsh/functions/TCP:/usr/share/zsh/functions/VCS_Info:/usr/share/zsh/functions/VCS_Info/Backends:/usr/share/zsh/functions/Zftp:/usr/share/zsh/functions/Zle:$FPATH

ZSH_THEME="spaceship"
SPACESHIP_DIR_TRUNC=0
SPACESHIP_DIR_TRUNC_REPO=false
SPACESHIP_BATTERY_SHOW=false
SPACESHIP_EXEC_TIME_SHOW=false
SPACESHIP_NODE_SHOW=true
SPACESHIP_PACKAGE_SHOW=false
SPACESHIP_PHP_SHOW=false
export RPS1="%{$reset_color%}"

plugins=(git pass vi-mode django)
ZSH_THEME=""

plugins=(git pass django)

source "$ZSH/oh-my-zsh.sh"
source "$HOME/.zsh/async/async.zsh"
Expand Down Expand Up @@ -42,6 +34,13 @@ async_start_worker nvm_worker -n
async_register_callback nvm_worker load_nvm
async_job nvm_worker sleep 0.1

fpath+=$HOME/.zsh/pure
autoload -U promptinit; promptinit
prompt pure

# Show git stash in prompt
zstyle :prompt:pure:git:stash show yes

# Up/down search for matches of what's already there
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
zle -N up-line-or-beginning-search
Expand All @@ -51,4 +50,5 @@ bindkey '^N' down-line-or-beginning-search
bindkey '^[[A' up-line-or-beginning-search
bindkey '^[[B' down-line-or-beginning-search

# Vi mode
bindkey -v

0 comments on commit 34cd2f4

Please sign in to comment.