mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-13 09:42:27 +00:00
Add dumb completion to add-sshkey
This commit is contained in:
@@ -41,6 +41,11 @@ function add-sshkey() {
|
||||
fi
|
||||
}
|
||||
|
||||
function _add-sshkey-completions() {
|
||||
COMPREPLY=( $(ls -1 ${HOME}/.ssh/id_*|cut -d'_' -f 3|cut -d'.' -f 1|sed 's/@//'|sort|uniq) )
|
||||
}
|
||||
complete -F _add-sshkey-completions add-sshkey
|
||||
|
||||
# Switch to a simple prompt for demos (thanks Mark H for the idea)
|
||||
function demoprompt() {
|
||||
if [ ! -z ${OLDPS1+x} ]; then
|
||||
|
||||
Reference in New Issue
Block a user