diff options
author | EuAndreh <eu@euandre.org> | 2022-05-14 05:04:48 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-05-14 05:04:48 -0300 |
commit | 9ed975fe3a9d146766f560cf66a872f8e9de5ba7 (patch) | |
tree | 6e59f49ce1d94bd6b0c85f21e0b59acd585a446b /etc/bash/rc | |
parent | bin/msg: Run notifications in parallel (diff) | |
download | dotfiles-9ed975fe3a9d146766f560cf66a872f8e9de5ba7.tar.gz dotfiles-9ed975fe3a9d146766f560cf66a872f8e9de5ba7.tar.xz |
etc/bash/rc: Show pretty tilde path in $V_FILES, in a better order
Diffstat (limited to 'etc/bash/rc')
-rw-r--r-- | etc/bash/rc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/etc/bash/rc b/etc/bash/rc index 50347d2..e4c1356 100644 --- a/etc/bash/rc +++ b/etc/bash/rc @@ -180,20 +180,20 @@ f() { fi } -V_FILES="$(echo ' +V_FILES="$(echo " ~/Documents/txt/TODOs.md ~/Documents/txt/scratch.txt -'"$(find ~/Documents/txt/*.md -not -name TODOs.md | +$XDG_CONFIG_HOME/bash/rc +$XDG_CONFIG_HOME/guix/home.scm +$XDG_CONFIG_HOME/guix/system.scm +$(find ~/Documents/txt/*.md -not -name TODOs.md | sed "s|^$HOME|~|" | - LANG=POSIX.UTF-8 sort)"' + LANG=POSIX.UTF-8 sort) ~/dev/libre/package-repository/dependencies.dot ~/dev/others/dinheiros/dinheiros.ledger ~/dev/libre/dotfiles/sh/fake-symlinks.sh -$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 .)" +" | tr ' ' '\n' | grep . | sed 's|^/home/andreh|~|')" v() { f="$(echo "$V_FILES" | fzf --select-1 --exit-0 --query "$1")" |