diff options
Diffstat (limited to '.zshrc')
| -rw-r--r-- | .zshrc | 43 |
1 files changed, 0 insertions, 43 deletions
@@ -242,7 +242,6 @@ function __cd_parent_dir() { [ -e $BUFFER ] || return pushd .. > /dev/null - __update_vcs_info __change_terminal_title zle reset-prompt } @@ -254,7 +253,6 @@ function __cd_prev_dir() { [ -e $BUFFER ] || return popd > /dev/null - __update_vcs_info __change_terminal_title zle reset-prompt } @@ -277,47 +275,6 @@ bindkey "^G" __cd_project_root_dir zmodload zsh/complist - -autoload -Uz vcs_info - - -zstyle ':vcs_info:git:*' formats ' (%b)%u%m' -zstyle ':vcs_info:git:*' actionformats ' (%b %a)%u%m' -zstyle ':vcs_info:git:*' unstagedstr '+' -zstyle ':vcs_info:git:*' check-for-changes true -zstyle ':vcs_info:git+set-message:*' hooks git-stash-count - -# Add stash count to VCS info. -function +vi-git-stash-count() { - local stash="$(git stash list 2>/dev/null | wc -l | tr -d ' ')" - if [[ "${stash}" -gt 0 ]]; then - hook_com[misc]=" [${stash}]" - else - hook_com[misc]="" - fi -} - - -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 " |
