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