mv: fish functions
This commit is contained in:
12
modules/terminal/fish-functions/ranger.fish
Normal file
12
modules/terminal/fish-functions/ranger.fish
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user