Skip to content

Commit 6e56156

Browse files
authored
Merge pull request #223 from MSch/fix-chpwd-error-when-dirstacksize-unset
Fix chpwd error when DIRSTACKSIZE is unset by Claude Code
2 parents 9bf484d + e4f7c98 commit 6e56156

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

etc/zsh/zshrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,6 +1537,7 @@ if zstyle -T ':grml:chpwd:dirstack' enable; then
15371537

15381538
function chpwd () {
15391539
(( ZSH_SUBSHELL )) && return
1540+
[[ -z $DIRSTACKSIZE ]] && return
15401541
(( $DIRSTACKSIZE <= 0 )) && return
15411542
[[ -z $DIRSTACKFILE ]] && return
15421543
grml_dirstack_filter $PWD && return

0 commit comments

Comments
 (0)