dotfiles/fish.configlink/functions/recent.fish

5 lines
179 B
Fish
Raw Normal View History

2022-04-30 14:21:43 +00:00
set vimfile (fd -t f --exec stat -f "%m%t%N" | sort -nr | cut -f2 | fzf)
and set vimfile (echo $vimfile | tr -d '\r')
and commandline -r "vim $vimfile"
and commandline -f execute