diff options
author | xyz <gky44px1999@gmail.com> | 2022-01-04 23:32:06 -0800 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2022-01-04 23:32:06 -0800 |
commit | 78d0e24c3b720aee369c6dc388bfc75eef823922 (patch) | |
tree | 80bbb41e24fe965f7cef239ffb598e7bf8cd68cf /home/xyz/.bashrc | |
parent | 825dc289f5f16b4aae9112e825c9a2edfa5e36d2 (diff) |
bashrc, some bash completion for my scripts
Diffstat (limited to 'home/xyz/.bashrc')
-rw-r--r-- | home/xyz/.bashrc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/home/xyz/.bashrc b/home/xyz/.bashrc index 17b68308..36428175 100644 --- a/home/xyz/.bashrc +++ b/home/xyz/.bashrc @@ -48,7 +48,7 @@ alias absolutely-proprietary='echo n | absolutely-proprietary -f' alias alsamixer='alsamixer -V all' alias diff='diff --color=auto' alias grep='grep --color=auto' -alias info='info --vi-keys' +#alias info='info --vi-keys' alias ls='ls --color=auto' alias radeontop='radeontop -c' alias rm='rm -I' @@ -118,5 +118,12 @@ zqi_key () { bind -m vi-command -x '"\C-o":zqi_key' bind -m vi-insert -x '"\C-o":zqi_key' +# more about bash completion see https://unix.stackexchange.com/a/529357/459013 +complete -c wh +# https://unix.stackexchange.com/questions/216748/how-to-re-use-existing-completion-with-recent-bash-completion +_completion_loader info +eval "$(complete -p info | sed 's/\(.*\)info$/\1vinfo/')" +_completion_loader git +eval "$(complete -p git | sed 's/\(.*\)git$/\1cfg/')" # from complete-alias readme complete -F _complete_alias "${!BASH_ALIASES[@]}" |