diff options
| author | 2021-05-06 12:13:43 -0400 | |
|---|---|---|
| committer | 2021-05-06 12:13:43 -0400 | |
| commit | 4be2fb4e53dfd1493dc0e4603f2dbf005bea9a09 (patch) | |
| tree | fd655147927f0f5d5a75a7dce813abddbc1ae10f /dot_local/share/toasty/prompts/prompt_toasty_setup | |
| parent | update tmux conf (diff) | |
remove zsh
Diffstat (limited to 'dot_local/share/toasty/prompts/prompt_toasty_setup')
| -rw-r--r-- | dot_local/share/toasty/prompts/prompt_toasty_setup | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/dot_local/share/toasty/prompts/prompt_toasty_setup b/dot_local/share/toasty/prompts/prompt_toasty_setup deleted file mode 100644 index c10c766..0000000 --- a/dot_local/share/toasty/prompts/prompt_toasty_setup +++ /dev/null @@ -1,32 +0,0 @@ -setopt promptsubst - -autoload -Uz add-zsh-hook -autoload -Uz vcs_info - -zstyle ':vcs_info:*' enable git -zstyle ':vcs_info:*' check-for-changes false -zstyle ':vcs_info:*' actionformats \ - '%B%F{cyan}(%b)%f%%b%c' -zstyle ':vcs_info:*' formats \ - '%B%F{cyan}(%b)%f%%b%c' - -# we want to catch unstaged and untracked in one swoop -zstyle ':vcs_info:git*+set-message:*' hooks git-dirty -function +vi-git-dirty { - if [[ $(git rev-parse --is-inside-work-tree 2> /dev/null) == 'true' ]] - then - if git status --porcelain | grep -Fq -e 'A' -e '??' -e 'M' - then - hook_com[staged]+=' %B%F{yellow}✗%f%b ' - else - hook_com[staged]+=' %B%F{green}✔%f%b ' - fi - fi -} - -add-zsh-hook -Uz precmd vcs_info - -PS1='%B%(?.%F{green}.%F{red})→%f%b %B%(!.%F{red}.%F{blue})%1~%f%b ${vcs_info_msg_0_}' -RPS1='%B%F{red}[%n@%m]%f%b' - -# vim: ft=zsh |
