m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-20 17:43:42 -05:00

fo to open files (primarily for videos)

Jikku Jose
2014-06-20 03:20:31 -07:00
parent 2a8130d9d9
commit 552500ddd8

@@ -122,3 +122,14 @@ fs() {
tmux switch-client -t "$session"
}
```
open files
----
```sh
fo() {
local file
file=$(fzf --query="$1" --select-1 --exit-0)
[ -n "$file" ] && open "$file"
}
```