fixes fuzzel ssh script
This commit is contained in:
parent
9fe5d5ac1e
commit
5aec5313c5
2 changed files with 4 additions and 2 deletions
|
|
@ -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";
|
||||||
|
|
|
||||||
|
|
@ -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