mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-20 17:43:42 -05:00
fo to open files (primarily for videos)
11
examples.md
11
examples.md
@@ -122,3 +122,14 @@ fs() {
|
|||||||
tmux switch-client -t "$session"
|
tmux switch-client -t "$session"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
open files
|
||||||
|
----
|
||||||
|
|
||||||
|
```sh
|
||||||
|
fo() {
|
||||||
|
local file
|
||||||
|
file=$(fzf --query="$1" --select-1 --exit-0)
|
||||||
|
[ -n "$file" ] && open "$file"
|
||||||
|
}
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user