feat(zsh): ignore commented hosts in sshconfig in ssh-menu

This commit is contained in:
2026-01-21 23:09:06 +01:00
parent 374d4a6100
commit 00ba9863bc

View File

@@ -49,8 +49,8 @@ EOF
export -f _ssh_menu_preview export -f _ssh_menu_preview
function ssh-menu { function ssh-menu {
selected="$(rg -N --no-heading 'Host .*' ~/.ssh \ selected="$(rg -N --no-heading '^Host .*' ~/.ssh \
| sed 's/Host \(.*\)/\1/' \ | sed 's/Host \(.*\)/\1/' | sort \
| SHELL=$(which bash) fzf --cycle \ | SHELL=$(which bash) fzf --cycle \
--bind 'tab:toggle-up,btab:toggle-down' \ --bind 'tab:toggle-up,btab:toggle-down' \
--delimiter ':' \ --delimiter ':' \