my nixos flake :3 (git.koi.rip mirror) git.koi.rip/koi/flake
nixos catppuccin linux dotfiles neovim
0

Configure Feed

Select the types of activity you want to include in your feed.

zsh: better jj/keep display in prompt

june (Jun 1, 2026, 2:21 PM +0200) 4e35c4f3 db9b725d

+6 -1
+6 -1
external/zsh/prompt.zsh
··· 17 17 18 18 zstyle ':vcs_info:git*' hooks git-strip-heads 19 19 function +vi-git-strip-heads() { 20 - hook_com[branch]=${hook_com[branch]#heads/} 20 + if [[ "${hook_com[branch]:0:8}" == "jj/keep/" ]]; then 21 + hook_com[branch]=${hook_com[branch]#jj/keep/} 22 + hook_com[branch]=${hook_com[branch]:0:8} 23 + else 24 + hook_com[branch]=${hook_com[branch]#heads/} 25 + fi 21 26 } 22 27 23 28 zstyle ':vcs_info:*' formats "${dim}%s( ${accent}%b${reset}${dim} )"