diff options
author | Matt Strapp <matt@mattstrapp.net> | 2025-03-24 08:45:48 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2025-03-24 08:45:48 -0500 |
commit | 528d5d4fe1b4012054572d32b931132c27514f3d (patch) | |
tree | fce21d8181cbcd07ed10b745ca4ddc1e7d1953e0 | |
parent | make sure ssh agent does not recreate itself over ssh (diff) | |
download | dotfiles-528d5d4fe1b4012054572d32b931132c27514f3d.tar dotfiles-528d5d4fe1b4012054572d32b931132c27514f3d.tar.gz dotfiles-528d5d4fe1b4012054572d32b931132c27514f3d.tar.bz2 dotfiles-528d5d4fe1b4012054572d32b931132c27514f3d.tar.lz dotfiles-528d5d4fe1b4012054572d32b931132c27514f3d.tar.xz dotfiles-528d5d4fe1b4012054572d32b931132c27514f3d.tar.zst dotfiles-528d5d4fe1b4012054572d32b931132c27514f3d.zip |
-rw-r--r-- | dot_config/zsh/dot_zshrc | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index 8af2021..3f87dea 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -33,17 +33,6 @@ if [ -x "$(command -v gem)" ]; then export PATH="$PATH:$GEM_HOME/bin" fi -# Make sure ssh-agent runs only when not already connected over ssh -if [[ -z "${SSH_CONNECTION}" ]]; then - if ! pgrep -u "$USER" ssh-agent > /dev/null; then - ssh-agent -t 1h > "$XDG_RUNTIME_DIR/ssh-agent.env" - fi - - if [ ! -f "$SSH_AUTH_SOCK" ]; then - source "$XDG_RUNTIME_DIR/ssh-agent.env" >/dev/null - fi -fi - # Enable colors and change prompt: autoload -U colors && colors # Load colors #stty stop undef # Disable ctrl-s to freeze terminal. |