diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-09-20 22:05:49 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-09-20 22:05:49 +0530 |
| commit | 275903e8ecc9161c6c690a83ca5b1eb7b67899a4 (patch) | |
| tree | 02a4550da8b9beea909c131d45e5a8e9aa600be9 /zsh | |
| parent | 605b9659932356d67a26118438ae513a14f4c895 (diff) | |
| download | home-manager-config-275903e8ecc9161c6c690a83ca5b1eb7b67899a4.tar.gz home-manager-config-275903e8ecc9161c6c690a83ca5b1eb7b67899a4.zip | |
Added git information to zsh prompt.
Changed configuration of rofi to be more consistent with the other windows.
Changed mod key to alt key.
Diffstat (limited to 'zsh')
| -rw-r--r-- | zsh/zshrc | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -1,4 +1,19 @@ -PROMPT='%F{red}%B┌[%b%F{green}%m%F{red}%B@%b%F{cyan}%n %F{blue}%~%F{red}%B] -%F{red}└>%b%f ' +setopt PROMPT_SUBST autoload -U colors && colors + +autoload -Uz vcs_info +precmd() { vcs_info } + +zstyle ':vcs_info:git:*' formats ' %F{yellow}[%F{cyan}%b %c%F{blue}%a%F{yellow}]' +zstyle ':vcs_info:git:*' actionformats ' %F{yellow}[%F{cyan}%b %c%F{blue}%a%F{yellow}]' + +zstyle ':vcs_info:*+set-message:*' hooks git-untracked git-dirty + +zstyle ':vcs_info:git:*' check-for-changes true +zstyle ':vcs_info:git:*' stagedstr '%F{green}✓%f' +zstyle ':vcs_info:git:*' unstagedstr '%F{red}✗%f' +zstyle ':vcs_info:git:*' aheadstr '%F{blue}⬆%f' +zstyle ':vcs_info:git:*' behindstr '%F{yellow}⬇%f' +PROMPT='%F{red}╭──[%F{green}%m%F{red}@%F{blue}%n%F{red}] %F{magenta}%~%f${vcs_info_msg_0_}%F{red} +╰─>%f ' |
