diff options
-rw-r--r-- | etc/bash/rc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/bash/rc b/etc/bash/rc index cb86b94..08ed9f0 100644 --- a/etc/bash/rc +++ b/etc/bash/rc @@ -171,7 +171,7 @@ f() { file="$(git ls-files | grep ${2:-.} | fzf --select-1 --exit-0 --preview 'cat {}')" if [ -n "$file" ]; then # shellcheck disable=2068 - # history -s f $@ + history -s f "$@" history -s "$1" "$file" "$1" "$file" fi @@ -195,6 +195,7 @@ $XDG_CONFIG_HOME/guix/channels.scm v() { f="$(echo "$V_FILES" | fzf --select-1 --exit-0 --query "$1")" if [ -n "$f" ]; then + history -s v "$@" history -s vi "$f" sh -c "vi $f" # vi "$HOME/${f#'~/'}" |