diff options
Diffstat (limited to '.zshrc')
| -rw-r--r-- | .zshrc | 40 |
1 files changed, 4 insertions, 36 deletions
@@ -219,7 +219,6 @@ bindkey "^U" backward-kill-line # C-j To go to the parent directory. function __cd_parent_dir() { pushd .. > /dev/null - __update_vcs_info zle reset-prompt } zle -N __cd_parent_dir @@ -228,7 +227,6 @@ bindkey "^J" __cd_parent_dir # C-o To go to the previous directory. function __cd_prev_dir() { popd > /dev/null - __update_vcs_info zle reset-prompt } zle -N __cd_prev_dir @@ -248,40 +246,6 @@ bindkey "^G" __cd_project_root_dir zmodload zsh/complist - -autoload -Uz vcs_info - - -zstyle ':vcs_info:git:*' check-for-changes true -zstyle ':vcs_info:git:*' unstagedstr "+" # Not Staged -zstyle ':vcs_info:*' max-reports 2 -zstyle ':vcs_info:*' formats " (%b)%u" -zstyle ':vcs_info:*' actionformats ' (%b %a)%u' - - -function __update_vcs_info() { - psvar=() - LANG=en_US.UTF-8 vcs_info - if [[ -n "$vcs_info_msg_0_" ]]; then - psvar[1]="$vcs_info_msg_0_" - fi -} - -function precmd() { - __update_vcs_info -} - - - -PROMPT=" -%75F%B%~%b%1(v,%1v,) -%150F>%153F>%159F>%f " - -PROMPT2="%63F>%62F>%61F>%f " - -SPROMPT="%179F%BDid you mean %r? (n/y):%b%f " - - HISTFILE=$HOME/.zsh_history HISTSIZE=1000000 SAVEHIST=1000000 @@ -355,3 +319,7 @@ export PATH=/usr/local/opt/gettext/bin:$PATH # To override system-provided Ruby with brewed Ruby export PATH=/usr/local/opt/ruby/bin:$PATH + + + +eval "$(starship init zsh)" |
