feat(tmux): add second prefix for nested in ssh

This commit is contained in:
2024-02-19 15:43:17 +01:00
parent 62ccbf5d4b
commit a1b422e29e
2 changed files with 12 additions and 14 deletions

View File

@@ -3,7 +3,7 @@
if [[ $# -eq 1 ]]; then
selected=$1
else
selected=$(grep "Host .*" ~/.ssh/config | grep -v "*" | sed "s/Host \(.*\)/\1/" | fzf --cycle --bind 'tab:toggle-up,btab:toggle-down')
selected="$(grep 'Host .*' ~/.ssh/config | grep -v '*' | sed 's/Host \(.*\)/\1/' | fzf --cycle --bind 'tab:toggle-up,btab:toggle-down')"
fi
if [[ -z $selected ]]; then