diff options
author | EuAndreh <eu@euandre.org> | 2022-05-13 15:05:38 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-05-13 15:05:38 -0300 |
commit | 370b5c675444b48d990169f1e2b584db011cda12 (patch) | |
tree | 82af087239b87d4ee26e03eec5e03c64a4079411 /etc/bash/rc | |
parent | etc/guix/home.scm: Rename "jobs" to "cronjobs" (diff) | |
download | dotfiles-370b5c675444b48d990169f1e2b584db011cda12.tar.gz dotfiles-370b5c675444b48d990169f1e2b584db011cda12.tar.xz |
etc/bash/rc: Replace hardcoded ~/.config paths with $XDG_CONFIG_HOME in `v()` function
Diffstat (limited to 'etc/bash/rc')
-rw-r--r-- | etc/bash/rc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/bash/rc b/etc/bash/rc index 8588089..cb86b94 100644 --- a/etc/bash/rc +++ b/etc/bash/rc @@ -177,7 +177,6 @@ f() { fi } -# FIXME: use $XDG_CONFIG_HOME V_FILES="$(echo ' ~/Documents/txt/TODOs.md ~/Documents/txt/scratch.txt @@ -187,17 +186,18 @@ V_FILES="$(echo ' ~/dev/libre/package-repository/dependencies.dot ~/dev/others/dinheiros/dinheiros.ledger ~/dev/libre/dotfiles/sh/fake-symlinks.sh -~/.config/bash/rc -~/.config/guix/home.scm -~/.config/guix/system.scm -~/.config/guix/channels.scm +$XDG_CONFIG_HOME/bash/rc +$XDG_CONFIG_HOME/guix/home.scm +$XDG_CONFIG_HOME/guix/system.scm +$XDG_CONFIG_HOME/guix/channels.scm ' | tr ' ' '\n' | grep .)" v() { f="$(echo "$V_FILES" | fzf --select-1 --exit-0 --query "$1")" if [ -n "$f" ]; then history -s vi "$f" - vi "$HOME/${f#'~/'}" + sh -c "vi $f" + # vi "$HOME/${f#'~/'}" fi } |