Set up complete-alias for bash
See: https://github.com/cykerway/complete-alias
This commit is contained in:
parent
0e0c4c2e62
commit
7d2ed96021
3 changed files with 1082 additions and 0 deletions
|
|
@ -6,3 +6,17 @@
|
|||
|
||||
|
||||
complete -W '--force' dotfiles-install dotfiles-update
|
||||
|
||||
|
||||
# Automagical completion for all ~/.config/shell/aliases
|
||||
#
|
||||
# See: https://github.com/cykerway/complete-alias
|
||||
|
||||
# shellcheck disable=SC2034 # Read by complete_alias sourced below
|
||||
COMPAL_AUTO_UNMASK=1
|
||||
# shellcheck disable=SC1091 # Third-party file, not linted
|
||||
. "${XDG_CONFIG_HOME:-$HOME/.config}/bash/complete_alias"
|
||||
|
||||
if [ "${#BASH_ALIASES[@]}" -gt 0 ]; then
|
||||
complete -F _complete_alias "${!BASH_ALIASES[@]}"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue