browse: fixed path to ranger
parent
ed74ea5e86
commit
188d15e2e6
1
.profile
1
.profile
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue