From 9e804bd83769c05a2ba4c7a89b8bb9fcb80cf227 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Fri, 1 Dec 2023 08:33:09 +0100 Subject: [PATCH] Add proxy --- templates/zshrc.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/zshrc.j2 b/templates/zshrc.j2 index 3c4dac4..7353c83 100644 --- a/templates/zshrc.j2 +++ b/templates/zshrc.j2 @@ -117,6 +117,9 @@ if [[ $#h -gt 0 ]]; then zstyle ':completion:*:ssh:*' hosts $h zstyle ':completion:*:slogin:*' hosts $h fi - +if ! pgrep -f "ssh -fND localhost:1080 kano.shell.drive.sunet.se"; then + ssh -fND localhost:1080 kano.shell.drive.sunet.se +fi + # Initialize the autocompletion autoload -Uz compinit && compinit -i