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
|
# Put non-GUI processes in the foreground
|
||||||
# Usage:
|
# Usage:
|
||||||
# f cd (hit enter, choose path)
|
# f cd (hit enter, choose path)
|
||||||
|
# f cat (hit enter, choose files)
|
||||||
# f vim (hit enter, choose files)
|
# f vim (hit enter, choose files)
|
||||||
# f vlc (hit enter, choose files)
|
# f vlc (hit enter, choose files)
|
||||||
f() {
|
f() {
|
||||||
@@ -145,8 +146,8 @@ f() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# if the program is not on the list of GUIs (e.g. vim, cat, etc.) bring it
|
# 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
|
# to foreground so we can see the output. Also put cd on this list.
|
||||||
if ! [[ $1 =~ ^(zathura|vlc)$ ]]; then
|
if ! [[ $1 =~ ^(cd|zathura|vlc)$ ]]; then
|
||||||
fg %%
|
fg %%
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user