Skip to content

Commit 64ebb3f

Browse files
committed
Merge branch 'develop' of https://github.com/agkozak/agkozak-zsh-prompt into develop
2 parents a628c10 + 2ecde4b commit 64ebb3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agkozak-zsh-prompt.plugin.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ _agkozak_is_ssh() {
138138
############################################################
139139
_agkozak_prompt_dirtrim() {
140140
[[ $1 -ge 1 ]] || set 2
141-
AGKOZAK_NAMED_DIRS=${AGKOZAK_NAMED_DIRS:-1}
141+
typeset -g AGKOZAK_NAMED_DIRS=${AGKOZAK_NAMED_DIRS:-1}
142142
if (( AGKOZAK_NAMED_DIRS )); then
143143
local zsh_pwd
144144
zsh_pwd=$(print -Pn '%~')

0 commit comments

Comments
 (0)