diff options
author | EuAndreh <eu@euandre.org> | 2022-05-15 18:23:34 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-05-15 18:23:34 -0300 |
commit | 6babbf3083f535ff454a9cb7caf7b3bbc894a190 (patch) | |
tree | 6be68dd13e6b9708a970cd41b32a1b565b0cc3eb | |
parent | etc/bash/rc: Move $V_FILES into v() function, use heredocs instead of strings (diff) | |
download | dotfiles-6babbf3083f535ff454a9cb7caf7b3bbc894a190.tar.gz dotfiles-6babbf3083f535ff454a9cb7caf7b3bbc894a190.tar.xz |
etc/bash/rc: Indent v() function body, remove commented code
-rw-r--r-- | etc/bash/rc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/etc/bash/rc b/etc/bash/rc index 0dbca5a..7f1d75d 100644 --- a/etc/bash/rc +++ b/etc/bash/rc @@ -190,13 +190,12 @@ v() { $XDG_CONFIG_HOME/guix/channels.scm EOF )" - 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#'~/'}" - fi + 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" + fi } cn() { |