mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
fix(ssh): use grep -E instead of egrep (#13380)
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
_ssh_configfile="$HOME/.ssh/config"
|
_ssh_configfile="$HOME/.ssh/config"
|
||||||
if [[ -f "$_ssh_configfile" ]]; then
|
if [[ -f "$_ssh_configfile" ]]; then
|
||||||
_ssh_hosts=($(
|
_ssh_hosts=($(
|
||||||
egrep '^Host.*' "$_ssh_configfile" |\
|
grep -E '^Host.*' "$_ssh_configfile" |\
|
||||||
awk '{for (i=2; i<=NF; i++) print $i}' |\
|
awk '{for (i=2; i<=NF; i++) print $i}' |\
|
||||||
sort |\
|
sort |\
|
||||||
uniq |\
|
uniq |\
|
||||||
|
|||||||
Reference in New Issue
Block a user