From 59865a8091161a7290ced878a6afbdaedc173fff Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Thu, 27 Jul 2023 11:27:23 -0400 Subject: [PATCH] Only use new agent on laptop --- configs/zsh/.zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configs/zsh/.zshrc b/configs/zsh/.zshrc index 9f97e3c..d558443 100644 --- a/configs/zsh/.zshrc +++ b/configs/zsh/.zshrc @@ -38,8 +38,10 @@ if type -p nvim > /dev/null; then fi # Replace gnome-keyring with default ssh agent if possible -if type -p gnome-keyring-daemon > /dev/null; then - killall gnome-keyring-daemon 2> /dev/null && eval `ssh-agent` +if HOSTNAME="ewpratten-laptop"; then + if type -p gnome-keyring-daemon > /dev/null; then + killall gnome-keyring-daemon 2> /dev/null && eval `ssh-agent` + fi fi # SDKMAN!