mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-19 20:29:45 +01:00
fix(jump): even spacing between marks (#11601)
This commit is contained in:
parent
49d34d00cd
commit
01c82c381d
1 changed files with 3 additions and 4 deletions
|
@ -35,12 +35,11 @@ marks() {
|
||||||
max=${#link:t}
|
max=${#link:t}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
local printf_markname_template="$(printf -- "%%%us " "$max")"
|
local printf_markname_template="$(printf -- "%%%us" "$max")"
|
||||||
for link in $MARKPATH/{,.}*(@N); do
|
for link in $MARKPATH/{,.}*(@N); do
|
||||||
local markname="$fg[cyan]${link:t}$reset_color"
|
local markname="$fg[cyan]$(printf -- "$printf_markname_template" "${link:t}")$reset_color"
|
||||||
local markpath="$fg[blue]$(readlink $link)$reset_color"
|
local markpath="$fg[blue]$(readlink $link)$reset_color"
|
||||||
printf -- "$printf_markname_template" "$markname"
|
printf -- "%s -> %s\n" "$markname" "$markpath"
|
||||||
printf -- "-> %s\n" "$markpath"
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue