From: Samir Benmendil Date: Tue, 16 Dec 2014 14:44:00 +0000 (+0000) Subject: zsh: print the dir when switch with ranger X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/b0e62eea737615803f00df922122d9f5b1c78139 zsh: print the dir when switch with ranger --- diff --git a/zsh/lib/ranger.zsh b/zsh/lib/ranger.zsh index 1fab1ae..64a94e6 100644 --- a/zsh/lib/ranger.zsh +++ b/zsh/lib/ranger.zsh @@ -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"