From 8db715239df62a46777fb186b4fd80462164edad Mon Sep 17 00:00:00 2001 From: imcompiling Date: Sat, 10 Jan 2026 23:51:20 -0500 Subject: [PATCH] Remove ssh agent stuff due to adding plugin --- .zshrc | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/.zshrc b/.zshrc index 9d58ae3..b1b3c47 100644 --- a/.zshrc +++ b/.zshrc @@ -1,26 +1,3 @@ -# ssh key loading. -env=~/.ssh/agent.env - -agent_load_env () { test -f "$env" && . "$env" >| /dev/null ; } - -agent_start () { - (umask 077; ssh-agent >| "$env") - . "$env" >| /dev/null ; } - -agent_load_env - -# agent_run_state: 0=agent running w/ key; 1=agent w/o key; 2= agent not running -agent_run_state=$(ssh-add -l >| /dev/null 2>&1; echo $?) - -if [ ! "$SSH_AUTH_SOCK" ] || [ $agent_run_state = 2 ]; then - agent_start - ssh-add -elif [ "$SSH_AUTH_SOCK" ] && [ $agent_run_state = 1 ]; then - ssh-add -fi - -unset env - # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below.