From 82f8386964a8da8e0b89adabc026de1927d6f2da Mon Sep 17 00:00:00 2001 From: Erin Abicht Date: Sat, 18 Mar 2023 11:28:08 -0400 Subject: [PATCH] FZF SSH --- functions/fssh.fish | 3 +++ functions/tools.fish | 1 + 2 files changed, 4 insertions(+) create mode 100644 functions/fssh.fish diff --git a/functions/fssh.fish b/functions/fssh.fish new file mode 100644 index 0000000..f92e315 --- /dev/null +++ b/functions/fssh.fish @@ -0,0 +1,3 @@ +function fssh + ssh "$(rg '^Host\b' $HOME/.ssh/config | awk '{print $2}' | fzf)" +end diff --git a/functions/tools.fish b/functions/tools.fish index aa76f7c..9d69da1 100644 --- a/functions/tools.fish +++ b/functions/tools.fish @@ -8,6 +8,7 @@ function tools echo "Tools" toolprint red "music (ncmpcpp)" "MPD client" toolprint red "backup" "Run borg backup" + toolprint red "fssh" "FZF ssh" toolprint red "ouch" "Archive manager" toolprint red "mood" "Mood tracker" toolprint red "dnsleaktest" "DNS leak test"