From d8d6109e432ab6008b89f02630b8e9b9f21ed62a Mon Sep 17 00:00:00 2001 From: Nils Winkler Date: Thu, 23 Jan 2020 08:36:53 +0100 Subject: [PATCH] Fix macOS sed in SSH completion See here for details: https://github.com/Bash-it/bash-it/commit/b5f666d467f6ddb7ed62da23cb070649e162a2ed --- completion/available/ssh.completion.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}) )