1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-12-12 08:25:20 +00:00
dotfiles/.config/fish/functions/ranger-cd.fish

8 lines
179 B
Fish
Raw Normal View History

2018-11-15 01:01:37 +00:00
# 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