browse: fixed path to ranger

master
Pierre Neidhardt 2013-10-11 15:16:00 +02:00
parent ed74ea5e86
commit 188d15e2e6
2 changed files with 2 additions and 1 deletions

View File

@ -126,5 +126,6 @@ export WINEDLLOVERRIDES="mscoree,mshtml="
# export PKG_CONFIG_PATH="${HOME}/local/usr/lib/pkgconfig"
# export CPPFLAGS=-I$HOME/local/usr/include
# export LDFLAGS=-L$HOME/local/usr/lib
# export PYTHONPATH=$HOME/local/usr/lib/python2.7/dist-packages/
#
# umask 077

View File

@ -422,7 +422,7 @@ browse ()
# can type "cd -" to return to the original directory.
tempfile="$(mktemp)"
/usr/bin/ranger --choosedir="$tempfile" "${@:-$(pwd)}"
ranger --choosedir="$tempfile" "${@:-$(pwd)}"
if [ -f "$tempfile" ] && [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then
cd -- "$(cat "$tempfile")"
fi