Set up complete-alias for bash

See: https://github.com/cykerway/complete-alias
This commit is contained in:
Alexander Hess 2026-08-23 15:28:56 +02:00
commit 7d2ed96021
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
3 changed files with 1082 additions and 0 deletions

View file

@ -6,3 +6,17 @@
complete -W '--force' dotfiles-install dotfiles-update 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

5
.config/bash/README.md Normal file
View file

@ -0,0 +1,5 @@
# `bash`-related Configurations
This folder contains
[`complete_alias`](./complete_alias),
which is sourced by [`~/.bash_completion`](../../.bash_completion).

1063
.config/bash/complete_alias Normal file

File diff suppressed because it is too large Load diff