diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-01-13 02:38:32 -0800 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-01-13 02:39:36 -0800 |
commit | 706eb4a37e0aeb22cef2a5eaf4729c2f8a172ec5 (patch) | |
tree | a6e729b896ecf8bc9d9737d2c9c7de1dc9045c2e /home/xyz/.bashrc | |
parent | 49a456a7e7f79b7c5e004d40fd0f870b5c1b8182 (diff) |
keep file similar to master branch
Diffstat (limited to 'home/xyz/.bashrc')
-rw-r--r-- | home/xyz/.bashrc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/home/xyz/.bashrc b/home/xyz/.bashrc index 8b1dff90..82ae0dc0 100644 --- a/home/xyz/.bashrc +++ b/home/xyz/.bashrc @@ -77,9 +77,7 @@ alias r='rem -cu+2 -@' # https://askubuntu.com/a/22043 alias s='sudo ' alias sa='ssh-add -l || ssh-add' -alias sca='ssh ca' alias se='sudo -E ' -alias sia='ssh ia' alias sp='ssh pp' alias spd='speedtest; librespeed-cli' alias sst='ssh studio' @@ -184,6 +182,10 @@ bind -m vi-insert -x '"\C-o":zqi_key' complete -c wh # tldr-sh-client readme complete -W "$(tldr 2>/dev/null -l -p all)" tldr +# copy from `complete -p drill` +# https://github.com/scop/bash-completion/blob/e209afb2d0c96ee6bfe83da8b2742a8f8e88d372/bash_completion#L2404-L2420 +# The url has the code of _comp_complete_known_hosts function, it says it is deprecated as a helper funtion and I should use _comp_compgen_known_hosts instead? Does my use count as helper function? I don't know how to use _comp_compgen_known_hosts. And _comp_complete_known_hosts works, so whatever. +complete -F _comp_complete_known_hosts pa # 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/')" |