Fix #1210 grep error on MacOS with ssh completion

See #1210
This commit is contained in:
con-f-use
2018-07-18 14:52:01 +02:00
committed by GitHub
parent 3d6d42ec2f
commit e23d26c8fe

View File

@@ -13,7 +13,7 @@ _sshcomplete() {
# parse all defined hosts from .ssh/config and files included there
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}' |
sed "s|^~/|$HOME/|")
do