1
0

zsh: treewide: minor fixes/style

This commit is contained in:
2022-07-19 02:41:45 +03:00
parent 0ec196bef2
commit 724df8e2d8
21 changed files with 102 additions and 51 deletions

View File

@@ -21,10 +21,12 @@ z-git-test() {
}
__z_git_pwd() {
local p s last pfx
z-git-test || return
local p=${(%):-%~}
p=${(%):-%~}
[[ "$p" =~ '/.+' ]] || return
local s pfx last
s=$(__z_git rev-parse --show-prefix)
s="${s%%/}"
if [ -n "$s" ] ; then