From 825dc289f5f16b4aae9112e825c9a2edfa5e36d2 Mon Sep 17 00:00:00 2001 From: xyz Date: Tue, 4 Jan 2022 22:20:25 -0800 Subject: bashrc, bash complete all alias --- home/xyz/.bashrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'home/xyz/.bashrc') diff --git a/home/xyz/.bashrc b/home/xyz/.bashrc index 7e236e43..17b68308 100644 --- a/home/xyz/.bashrc +++ b/home/xyz/.bashrc @@ -11,6 +11,7 @@ esac . /usr/share/fzf/completion.bash . /usr/share/fzf/key-bindings.bash +. /usr/share/bash-complete-alias/complete_alias # default PS1 #PS1='[\u@\h \W]\$ ' @@ -116,3 +117,6 @@ zqi_key () { } bind -m vi-command -x '"\C-o":zqi_key' bind -m vi-insert -x '"\C-o":zqi_key' + +# from complete-alias readme +complete -F _complete_alias "${!BASH_ALIASES[@]}" -- cgit v1.2.3-70-g09d2