summaryrefslogtreecommitdiff
path: root/home/xyz/.bashrc
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2022-01-04 22:20:25 -0800
committerxyz <gky44px1999@gmail.com>2022-01-04 22:20:25 -0800
commit825dc289f5f16b4aae9112e825c9a2edfa5e36d2 (patch)
treea05ea9606953d69466f82fa0c4ebfa95cfd6f876 /home/xyz/.bashrc
parent757884ab86355066f5199ef6c3ae08f3c28815cd (diff)
bashrc, bash complete all alias
Diffstat (limited to 'home/xyz/.bashrc')
-rw-r--r--home/xyz/.bashrc4
1 files changed, 4 insertions, 0 deletions
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[@]}"