Skip to content

Commit

Permalink
Move Zsh prompt initialization below other config
Browse files Browse the repository at this point in the history
Prompt can be initialized after histfile config and key bindings.
  • Loading branch information
br3ndonland committed Jun 20, 2020
1 parent 12819d3 commit dfb109f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ export SSH_KEY_PATH="~/.ssh/id_rsa_${USER}"
alias dc="docker-compose"
alias python="/usr/local/bin/python3"
alias ssh-add=/usr/bin/ssh-add
### ---------- Pure Prompt: https://github.com/sindresorhus/pure ---------- ###
autoload -U promptinit
promptinit
prompt pure
### ------ History file configuration - based on ohmyzsh history.zsh ------ ###
[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history"
HISTSIZE=50000
Expand Down Expand Up @@ -42,6 +38,10 @@ bindkey '^[[3;3~' kill-word # alt+del delete next word
bindkey '^N' kill-buffer # ctrl+n delete all lines
bindkey '^_' undo # ctrl+/ undo
bindkey '^\' redo # ctrl+\ redo
### ---------- Pure Prompt: https://github.com/sindresorhus/pure ---------- ###
autoload -U promptinit
promptinit
prompt pure
### ---------------------------- Integrations ----------------------------- ###
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
Expand Down

0 comments on commit dfb109f

Please sign in to comment.