diff --git a/Examples.md b/Examples.md index b572521..510e86f 100644 --- a/Examples.md +++ b/Examples.md @@ -121,17 +121,16 @@ fo() { ``` -Run command/application and choose paths/files with fzf. +Run command/application and choose paths/files with fzf. Always return control of the termainal to user (e.g. when opening GUIs). ```sh -# 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) -``` -The function: -```sh +# 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) + +# the function: f() { # store the files from fzf IFS=$'\n' files=($(fzf --query="$2" --multi))