mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
also suggest host configs that do not contain a dot
This commit is contained in:
parent
6bf97f3666
commit
869ea9df10
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
# Filter out wildcard host sections.
|
# Filter out wildcard host sections.
|
||||||
local hosts
|
local hosts
|
||||||
if [[ -f $HOME/.ssh/config ]]; then
|
if [[ -f $HOME/.ssh/config ]]; then
|
||||||
hosts=($(cat $HOME/.ssh/config | egrep '^Host.*' | awk '{print $2}' | grep -v '^*' | sed -e 's/\.*\*$//' | grep '\.'))
|
hosts=($(egrep '^Host.*' $HOME/.ssh/config | awk '{print $2}' | grep -v '^*' | sed -e 's/\.*\*$//'))
|
||||||
zstyle ':completion:*:hosts' hosts $hosts
|
zstyle ':completion:*:hosts' hosts $hosts
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue