fixes fuzzel ssh script
This commit is contained in:
parent
9fe5d5ac1e
commit
5aec5313c5
2 changed files with 4 additions and 2 deletions
|
|
@ -3,4 +3,6 @@
|
||||||
fish_executable="/run/current-system/sw/bin/fish"
|
fish_executable="/run/current-system/sw/bin/fish"
|
||||||
selected=$(cat ~/.ssh/config | grep "Host " | cut -d " " -f 2 | sort | tail -n +2 | fuzzel --dmenu --prompt "Connect to: ")
|
selected=$(cat ~/.ssh/config | grep "Host " | cut -d " " -f 2 | sort | tail -n +2 | fuzzel --dmenu --prompt "Connect to: ")
|
||||||
|
|
||||||
ghostty -e "$fish_executable" -c "ssh $selected"
|
if [ "$selected" != "" ]; then
|
||||||
|
ghostty -e "$fish_executable" -c "ssh $selected"
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue