fix(ssh): use `grep -E` instead of `egrep` (#13380)

master
Florian 5 months ago committed by GitHub
parent ac92582961
commit caba9ae034
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      plugins/ssh/ssh.plugin.zsh

@ -5,7 +5,7 @@
_ssh_configfile="$HOME/.ssh/config"
if [[ -f "$_ssh_configfile" ]]; then
_ssh_hosts=($(
egrep '^Host.*' "$_ssh_configfile" |\
grep -E '^Host.*' "$_ssh_configfile" |\
awk '{for (i=2; i<=NF; i++) print $i}' |\
sort |\
uniq |\

Loading…
Cancel
Save