summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2025-11-03 10:41:51 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2025-11-03 10:41:51 +0100
commitd23ff68fd2652225c5168b6938961c9291f65f23 (patch)
tree4e4e60b40f0415ed14615fe92118c139c4e06c64
parent65005ed08183023e2580bd1b69ea725677084854 (diff)
add sshconnect
-rw-r--r--common/home/scripts/sshconnect7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/home/scripts/sshconnect b/common/home/scripts/sshconnect
new file mode 100644
index 0000000..bd86ad8
--- /dev/null
+++ b/common/home/scripts/sshconnect
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+connection=$(grep Host ~/global/.ssh/config | awk '{ print $2 }' | wofi -d)
+
+[ -z "$connection" ] && exit
+
+alacritty -e ssh "$connection"