Skip to content
Snippets Groups Projects
Commit a540c0e0 authored by nimrod's avatar nimrod
Browse files

Fix the SSH aliases Bash completion.

parent 174dc54c
No related branches found
No related tags found
No related merge requests found
if [ -f /usr/share/bash-completion/completions/ssh ]
then
. /usr/share/bash-completion/completions/ssh
if command -v _ssh > /dev/null
then
complete -F _ssh ssmh unssh
else
complete -F _comp_cmd_ssh ssmh unssh
fi
elif [ -f /usr/local/share/bash-completion/completions/ssh ]
then
. /usr/local/share/bash-completion/completions/ssh
if command -v _ssh > /dev/null
then
complete -F _ssh ssmh unssh
else
complete -F _comp_cmd_ssh ssmh unssh
fi
fi
if [ -f /usr/share/bash-completion/completions/scp ]
then
. /usr/share/bash-completion/completions/scp
if command -v _scp > /dev/null
then
complete -F _scp -o nospace scp
else
complete -F _comp_cmd_scp -o nospace scp
fi
elif [ -f /usr/local/share/bash-completion/completions/scp ]
then
. /usr/local/share/bash-completion/completions/scp
if command -v _scp > /dev/null
then
complete -F _scp -o nospace scp
else
complete -F _comp_cmd_scp -o nospace scp
fi
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment