8 lines
271 B
Bash
Executable file
8 lines
271 B
Bash
Executable file
#!/bin/sh
|
|
|
|
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: ")
|
|
|
|
if [ "$selected" != "" ]; then
|
|
ghostty -e "$fish_executable" -c "ssh $selected"
|
|
fi
|