cd: Remove unneeded code

This now works in cd proper, so it's unneeded in the function.
This commit is contained in:
Fabian Homborg 2020-09-12 20:17:30 +02:00
parent 5fd3ad624f
commit 1c43030d79

View file

@ -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