diff options
| author | Franck Cuny <franck@fcuny.net> | 2023-03-11 14:33:26 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2023-03-11 14:33:26 -0800 |
| commit | dea91567f215c0245517f9b87d28130a291a19a6 (patch) | |
| tree | 0a7457b90f224467ff9994fbc1435a9524528878 /home/shell/zsh/prompt.zsh | |
| parent | secrets: move aptos' gcloud secrets to homeage (diff) | |
| download | infra-dea91567f215c0245517f9b87d28130a291a19a6.tar.gz | |
home/shell: switch the default shell back to zsh
I keep running into issues when using fish: I'm not familiar with the
syntax and I don't use it enough that it sticks. I also need to google
stuff regularly to figure out how things are supposed to work. This is
annoying enough that the supposed benefits of fish are not worth it for
me.
Diffstat (limited to '')
| -rw-r--r-- | home/shell/zsh/prompt.zsh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/home/shell/zsh/prompt.zsh b/home/shell/zsh/prompt.zsh index 291f436..8473f72 100644 --- a/home/shell/zsh/prompt.zsh +++ b/home/shell/zsh/prompt.zsh @@ -1,6 +1,13 @@ setopt prompt_subst -PROMPT='%K{cyan}%F{black}%m%k%f %~ %% ' +autoload -Uz vcs_info + +# display the name of the branch +zstyle ':vcs_info:git*' formats "[%b]" +zstyle ':vcs_info:*' enable git + +precmd () { vcs_info } +PROMPT="%K{cyan}%F{black}%n@%m%k%F{yellow}%~%f %F{green}${vcs_info_msg_0_}%f%% " # For tramp (emacs). if [ "$TERM" = "dumb" ]; then |
