f() { profile="$f-shell-function(pwd | sed -e 's_/_-_g')" file="$(git ls-files | \ remembering -p "$profile" \ -c "fzf --select-1 --exit -0 --query \"$2\" --preview 'cat {}'")" if [ -n "$file" ]; then # shellcheck disable=2068 history -s f $@ history -s "$1" "$file" "$1" "$file" fi }