mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-05 20:47:08 +08:00
Merge e72b35cf6f into d1222044bc
This commit is contained in:
commit
d686e136e8
@ -23,8 +23,8 @@ lwd() {
|
||||
#
|
||||
# - This isn't the first time the plugin is loaded
|
||||
# - We're not in the $HOME directory (e.g. if terminal opened a different folder)
|
||||
[[ -z "$ZSH_LAST_WORKING_DIRECTORY" ]] || return
|
||||
[[ "$PWD" == "$HOME" ]] || return
|
||||
[[ -z "$ZSH_LAST_WORKING_DIRECTORY" ]] || return 0
|
||||
[[ "$PWD" == "$HOME" ]] || return 0
|
||||
|
||||
if lwd 2>/dev/null; then
|
||||
ZSH_LAST_WORKING_DIRECTORY=1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user