dotfiles/modules/shell/fish/functions/recent.fish

5 lines
188 B
Fish
Raw Normal View History

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