aboutsummaryrefslogtreecommitdiff
path: root/etc/bash
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-05-15 18:23:34 -0300
committerEuAndreh <eu@euandre.org>2022-05-15 18:23:34 -0300
commit6babbf3083f535ff454a9cb7caf7b3bbc894a190 (patch)
tree6be68dd13e6b9708a970cd41b32a1b565b0cc3eb /etc/bash
parentetc/bash/rc: Move $V_FILES into v() function, use heredocs instead of strings (diff)
downloaddotfiles-6babbf3083f535ff454a9cb7caf7b3bbc894a190.tar.gz
dotfiles-6babbf3083f535ff454a9cb7caf7b3bbc894a190.tar.xz
etc/bash/rc: Indent v() function body, remove commented code
Diffstat (limited to 'etc/bash')
-rw-r--r--etc/bash/rc13
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() {