Skip to content

Commit 8df5c1b

Browse files
authored
fix(last-working-dir): use explicit return 0 in early-exit guards (ohmyzsh#13623)
1 parent d122204 commit 8df5c1b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/last-working-dir/last-working-dir.plugin.zsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ lwd() {
2323
#
2424
# - This isn't the first time the plugin is loaded
2525
# - We're not in the $HOME directory (e.g. if terminal opened a different folder)
26-
[[ -z "$ZSH_LAST_WORKING_DIRECTORY" ]] || return
27-
[[ "$PWD" == "$HOME" ]] || return
26+
[[ -z "$ZSH_LAST_WORKING_DIRECTORY" ]] || return 0
27+
[[ "$PWD" == "$HOME" ]] || return 0
2828

2929
if lwd 2>/dev/null; then
3030
ZSH_LAST_WORKING_DIRECTORY=1

0 commit comments

Comments
 (0)