From 1c43030d79583168b68d67986dc20ca96b19effe Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sat, 12 Sep 2020 20:17:30 +0200 Subject: [PATCH] cd: Remove unneeded code This now works in cd proper, so it's unneeded in the function. --- share/functions/cd.fish | 6 ------ 1 file changed, 6 deletions(-) diff --git a/share/functions/cd.fish b/share/functions/cd.fish index e7c868868..bf41f4f3b 100644 --- a/share/functions/cd.fish +++ b/share/functions/cd.fish @@ -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