mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 03:51:14 -03:00
cd: Remove unneeded code
This now works in cd proper, so it's unneeded in the function.
This commit is contained in:
@@ -27,12 +27,6 @@ function cd --description "Change directory"
|
||||
return $status
|
||||
end
|
||||
|
||||
# allow explicit "cd ." if the mount-point became stale in the meantime
|
||||
if test "$argv" = "."
|
||||
cd "$PWD"
|
||||
return $status
|
||||
end
|
||||
|
||||
builtin cd $argv
|
||||
set -l cd_status $status
|
||||
|
||||
|
||||
Reference in New Issue
Block a user