mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-19 00:53:42 -05:00
Updated Examples (markdown)
@@ -125,6 +125,7 @@ fo() {
|
||||
# Put non-GUI processes in the foreground
|
||||
# Usage:
|
||||
# f cd (hit enter, choose path)
|
||||
# f cat (hit enter, choose files)
|
||||
# f vim (hit enter, choose files)
|
||||
# f vlc (hit enter, choose files)
|
||||
f() {
|
||||
@@ -145,8 +146,8 @@ f() {
|
||||
fi
|
||||
|
||||
# if the program is not on the list of GUIs (e.g. vim, cat, etc.) bring it
|
||||
# to foreground so we can see the output
|
||||
if ! [[ $1 =~ ^(zathura|vlc)$ ]]; then
|
||||
# to foreground so we can see the output. Also put cd on this list.
|
||||
if ! [[ $1 =~ ^(cd|zathura|vlc)$ ]]; then
|
||||
fg %%
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user