diff --git a/Examples.md b/Examples.md index c2213d5..9223aab 100644 --- a/Examples.md +++ b/Examples.md @@ -291,7 +291,7 @@ ag --nobreak --nonumbers --noheading . | fzf # find-in-file - usage: fif fif() { if [ ! "$#" -gte 1 ]; then echo "Need a string to search for!"; return 1; fi - rg --files-with-matches --no-messages $1 | fzf --preview "highlight -O ansi -l {} 2> /dev/null | rg --colors 'match:bg:yellow' --ignore-case --pretty --context 10 $1 || rg --ignore-case --pretty --context 10 $1 {}" + rg --files-with-matches --no-messages "$1" | fzf --preview "highlight -O ansi -l {} 2> /dev/null | rg --colors 'match:bg:yellow' --ignore-case --pretty --context 10 '$1' || rg --ignore-case --pretty --context 10 '$1' {}" } ```