13 lines
183 B
Fish
13 lines
183 B
Fish
|
|
set tempfile '/tmp/chosendir'
|
|
command ranger --choosedir=$tempfile (pwd) $argv
|
|
|
|
if test -f $tempfile
|
|
if [ (cat $tempfile) != (pwd) ]
|
|
cd (cat $tempfile)
|
|
end
|
|
end
|
|
|
|
rm -f $tempfile
|
|
|