fixes fuzzel ssh script

This commit is contained in:
Dennis Schoepf 2025-11-26 00:52:17 +01:00
parent 9fe5d5ac1e
commit 5aec5313c5
2 changed files with 4 additions and 2 deletions

View file

@ -34,7 +34,7 @@
vertical-pad = 20; vertical-pad = 20;
inner-pad = 25; inner-pad = 25;
image-size-ratio = 1; image-size-ratio = 1;
prompt = "Open: "; prompt = "Open: ";
}; };
colors = { colors = {
background = "0f0b15f5"; background = "0f0b15f5";

View file

@ -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