summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-15 17:16:12 +0200
committerKyren223 <Kyren223@proton.me>2024-11-15 17:16:12 +0200
commit5405c9a8f2308a2756322bd9cb8623d1dd3790e6 (patch)
treeb1b72e4df2c74d947f4329a10d588fc1660c6b94
parentfa998f83918117a0ac63c7a0ec3cf412dfb8f929 (diff)
Chainged keychain to prompt about the key automatically and forget it after 30m
-rw-r--r--.zshrc7
1 files changed, 4 insertions, 3 deletions
diff --git a/.zshrc b/.zshrc
index 5ffd444..d439867 100644
--- a/.zshrc
+++ b/.zshrc
@@ -4,9 +4,6 @@ START_TIME=$(date +%s.%3N)
mkdir -p /tmp
export TMUX_TMPDIR='/tmp'
-# Start ssh-agent if not running
-eval $(keychain --quiet)
-
# Enable rustup tab completion for zsh - https://rust-lang.github.io/rustup/installation/index.html
rustup completions zsh > ~/.zfunc/_rustup
fpath+=~/.zfunc
@@ -128,3 +125,7 @@ case ":$PATH:" in
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
+
+# Start ssh-agent if not running
+eval $(keychain --quiet --eval --timeout 10 ~/.ssh/id_ed25519)
+