diff options
Diffstat (limited to 'dot_config/zsh/functions')
| -rw-r--r-- | dot_config/zsh/functions/prompt_fish_setup | 1 | ||||
| -rw-r--r-- | dot_config/zsh/functions/prompt_zstyle_setup | 14 | ||||
| -rw-r--r-- | dot_config/zsh/functions/tt | 1 |
3 files changed, 14 insertions, 2 deletions
diff --git a/dot_config/zsh/functions/prompt_fish_setup b/dot_config/zsh/functions/prompt_fish_setup index 397b3e0..12a0733 100644 --- a/dot_config/zsh/functions/prompt_fish_setup +++ b/dot_config/zsh/functions/prompt_fish_setup @@ -1,3 +1,4 @@ +# -*- mode: sh -*- # vim: ft=zsh # a prompt meant to imitate fish's default prompt # it's not meant to be too close necessarily, just same feel overall, diff --git a/dot_config/zsh/functions/prompt_zstyle_setup b/dot_config/zsh/functions/prompt_zstyle_setup index 256464c..1269575 100644 --- a/dot_config/zsh/functions/prompt_zstyle_setup +++ b/dot_config/zsh/functions/prompt_zstyle_setup @@ -1,3 +1,4 @@ +# -*- mode: sh -*- # vim: ft=zsh # a prompt entirely configured by zstyle, usable by default # make sure you configure vcs_info! @@ -57,9 +58,18 @@ prompt_zstyle_preset() { zstyle :prompt:zstyle:parts return '%(0?.. %F{red}[%?]%f)' zstyle :prompt:zstyle:parts separator '%(!.#.>)' zstyle :prompt:zstyle:parts vcsinfo \ - '${vcs_info_msg_0_:+ $vcs_info_msg_0_}' + '${vcs_info_msg_0_:+ $vcs_info_msg_0_}' zstyle :prompt:zstyle ps1 \ - login ' ' pwd vcsinfo return separator ' ' + login ' ' pwd vcsinfo return separator ' ' + ;; + grml) + prompt_zstyle_reset + zstyle :prompt:zstyle:parts login '%B%(!.%F{red}.%F{blue})%n%f%b@%m' + zstyle :prompt:zstyle:parts return '%(0?..%F{red}%?%f )' + zstyle :prompt:zstyle:parts vcsinfo \ + '${vcs_info_msg_0_:+ $vcs_info_msg_0_}' + zstyle :prompt:zstyle ps1 \ + return login ' ' pwd vcsinfo ' ' separator ' ' ;; esac } diff --git a/dot_config/zsh/functions/tt b/dot_config/zsh/functions/tt index 0328e71..090d935 100644 --- a/dot_config/zsh/functions/tt +++ b/dot_config/zsh/functions/tt @@ -1,3 +1,4 @@ +# -*- mode: sh -*- # vim: ft=zsh typeset -gaU __tt_exit_dirs __tt_exit() { |
