mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
Update function wrapper for cd builtin, make sure a local variable is used
darcs-hash:20060617131145-ac50b-1cef97b5e774713f659962b7e33f889be3081a3d.gz
This commit is contained in:
parent
e94803152c
commit
c9e98c2eef
@ -11,7 +11,7 @@ function cd -d (N_ "Change directory")
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Avoid set completions
|
# Avoid set completions
|
||||||
set previous $PWD
|
set -l previous $PWD
|
||||||
|
|
||||||
if test $argv[1] = - ^/dev/null
|
if test $argv[1] = - ^/dev/null
|
||||||
if test $__fish_cd_direction = next ^/dev/null
|
if test $__fish_cd_direction = next ^/dev/null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user