]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/lib/ranger.zsh
zsh: print the dir when switch with ranger
[dotfiles.git] / zsh / lib / ranger.zsh
index 1fab1ae446a3c0ccac5af1981682277ef32b6d9f..64a94e63c583d476dc316dacffef70d16eac804b 100644 (file)
@@ -8,6 +8,7 @@ function ranger {
     /usr/bin/ranger --choosedir="$tempfile" "${@:-$(pwd)}"
     test -f "$tempfile" &&
     if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then
+        echo "$(cat "$tempfile")"
         cd -- "$(cat "$tempfile")"
     fi
     rm -f -- "$tempfile"