tangled
alpha
login
or
join now
koi.rip
/
dotfiles
0
fork
atom
my nixos dotfiles :3 (git.koi.rip mirror)
git.koi.rip/koi/dotfiles
linux
dotfiles
neovim
nixos
catppuccin
0
fork
atom
overview
issues
pulls
pipelines
zsh: strip `heads/` from branch names in prompt
koi.rip
1 month ago
3d4d9bd0
8ea6bcce
+6
1 changed file
expand all
collapse all
unified
split
external
zsh
prompt.zsh
+6
external/zsh/prompt.zsh
···
14
14
local reset=$'\e[0m'
15
15
local newline=$'\n'
16
16
17
17
+
18
18
+
zstyle ':vcs_info:git*' hooks git-strip-heads
19
19
+
function +vi-git-strip-heads() {
20
20
+
hook_com[branch]=${hook_com[branch]#heads/}
21
21
+
}
22
22
+
17
23
zstyle ':vcs_info:*' formats "${dim}%s( ${accent}%b${reset}${dim} )"
18
24
zstyle ':vcs_info:*' actionformats "${dim}%s( ${accent}%b${reset} | ${accent}%a${reset}${dim} )"
19
25
zstyle ':vcs_info:*' enable git