1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-10 00:45:32 +00:00
dotfiles/.config/fish/functions/ranger-cd.fish
2018-11-14 20:01:37 -05:00

8 lines
179 B
Fish
Executable file

# Defined in /tmp/fish.UJ4EF5/ranger-cd.fish @ line 2
function ranger-cd
set tempfile (mktemp -t tmp.XXXXXX)
ranger --choosedir=$tempfile
cd (cat $tempfile)
rm -f $tempfile
end