dotfiles/fish.configlink/functions/recent.fish

5 lines
155 B
Fish
Raw Normal View History

2021-04-28 12:58:14 +00:00
function recent --description "Open a recent file in Vim"
set vimfile (fd --exec stat -f "%m%t%N" | sort -nr | cut -f2 | fzf)
and vim $vimfile
end