From fa90dec208ca5bea796149ed6ca676504a953277 Mon Sep 17 00:00:00 2001 From: Stefan Friese Date: Wed, 7 Aug 2024 17:23:19 +0200 Subject: [PATCH] added individual user to the usual .ssh/config --- bash/.bash_functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bash/.bash_functions b/bash/.bash_functions index b8856ad..b7ebf7b 100644 --- a/bash/.bash_functions +++ b/bash/.bash_functions @@ -10,7 +10,8 @@ ssh() { } ssh-host() { - ssh $(awk '$1 == "Host" && $2 != "*" {print $2}' "$HOME/.ssh/config" | fzf --reverse) + ssh $(cat "$HOME/.ssh/config" "$HOME/.ssh/conf.d/individual_user" \ + | awk '$1 == "Host" && $2 != "*" {print $2}' | fzf --reverse) } # Creates a new directory and immediately changes into it