diff options
| author | ivan-boikov <ik.boikov.public@protonmail.com> | 2023-12-01 17:38:43 +0100 |
|---|---|---|
| committer | ivan-boikov <ik.boikov.public@protonmail.com> | 2023-12-01 17:38:43 +0100 |
| commit | 8af0c700789d64b29bdded59adf7761521305212 (patch) | |
| tree | ca0ee7f771b91271fba55bc7a908ca7c80a08a50 /shell | |
| parent | 46425712409ddfd693d31a5ca416a2e6ef34fbd6 (diff) | |
1
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/.config/shell/aliasrc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/shell/.config/shell/aliasrc b/shell/.config/shell/aliasrc index 8b48a2f..fd2c815 100644 --- a/shell/.config/shell/aliasrc +++ b/shell/.config/shell/aliasrc @@ -81,3 +81,18 @@ alias wttr='curl https://wttr.in/paris-france' [ -d "$XDG_CONFIG_HOME/abook/" ] || mkdir -p "$XDG_CONFIG_HOME/abook/" [ -d "$XDG_DATA_HOME/abook/" ] || mkdir -p "$XDG_DATA_HOME/abook/" alias abook='abook --config $XDG_CONFIG_HOME/abook/abookrc --datafile $XDG_DATA_HOME/abook/addressbook' + +alias beet='$XDG_DATA_HOME/venv/beets/bin/beet' + +# https://unix.stackexchange.com/questions/224227/how-do-you-make-an-alias-or-function-that-retains-tab-completion +# First find out which complete-function is used for the systemctl command: +# complete | grep " systemctl$" +# The output looks like this: +# complete -F _functionname systemctl +# Then use: +# complete -F _functionname sctl +# To register the function for the completion of your alias. + +# beet completion is lazy and will only load after <Tab>ing the actual command +# load manually then +# source /usr/share/bash-completion/completions/<whatever> |
