Merge pull request #1217 from con-f-use/patch-1

Fix #1210 grep error on MacOS with ssh completion
pull/1218/head
Nils Winkler 2018-07-19 08:27:21 +02:00 committed by GitHub
commit a5923e0793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ _sshcomplete() {
# parse all defined hosts from .ssh/config and files included there # parse all defined hosts from .ssh/config and files included there
for fl in "$HOME/.ssh/config" \ for fl in "$HOME/.ssh/config" \
$(grep -P "^\s*Include" "$HOME/.ssh/config" | $(grep "^\s*Include" "$HOME/.ssh/config" |
awk '{for (i=2; i<=NF; i++) print $i}' | awk '{for (i=2; i<=NF; i++) print $i}' |
sed "s|^~/|$HOME/|") sed "s|^~/|$HOME/|")
do do