about summary refs log tree commit diff
path: root/Functions/Chpwd/chpwd_recent_dirs
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Chpwd/chpwd_recent_dirs')
-rw-r--r--Functions/Chpwd/chpwd_recent_dirs5
1 files changed, 0 insertions, 5 deletions
diff --git a/Functions/Chpwd/chpwd_recent_dirs b/Functions/Chpwd/chpwd_recent_dirs
index 10a6b4e34..78608eea2 100644
--- a/Functions/Chpwd/chpwd_recent_dirs
+++ b/Functions/Chpwd/chpwd_recent_dirs
@@ -38,11 +38,6 @@ fi
 chpwd_recent_filehandler
 
 if [[ $reply[1] != $PWD ]]; then
-  if [[ -n $OLDPWD && $reply[1] != $OLDPWD ]]; then
-    # The first time we change directory we probably don't have
-    # the initial directory.
-    chpwd_recent_add $OLDPWD && changed=1
-  fi
   chpwd_recent_add $PWD && changed=1
 
   (( changed )) && chpwd_recent_filehandler $reply