diff --git a/completion/available/ssh.completion.bash b/completion/available/ssh.completion.bash index 41d16243..4c47277b 100644 --- a/completion/available/ssh.completion.bash +++ b/completion/available/ssh.completion.bash @@ -15,7 +15,7 @@ _sshcomplete() { for fl in "$HOME/.ssh/config" \ $(grep "^\s*Include" "$HOME/.ssh/config" | awk '{for (i=2; i<=NF; i++) print $i}' | - sed -re "s|^([^/~])|$HOME/.ssh/\1|" -e "s|^~/|$HOME/|") + sed -Ee "s|^([^/~])|$HOME/.ssh/\1|" -e "s|^~/|$HOME/|") do if [ -r "$fl" ]; then COMPREPLY=( ${COMPREPLY[@]} $(compgen -W "$(grep -i ^Host "$fl" |grep -v '[*!]' | awk '{for (i=2; i<=NF; i++) print $i}' )" ${OPTIONS}) )