diff --git a/private_dot_config/private_fish/config.fish b/private_dot_config/private_fish/config.fish index c08efc4..cf2ddc6 100644 --- a/private_dot_config/private_fish/config.fish +++ b/private_dot_config/private_fish/config.fish @@ -8,7 +8,11 @@ set -gx PATH $HOME/.go/bin $PATH set -gx EDITOR nvim set fish_color_valid_path set -g fish_greeting -set -g SSH_AUTH_SOCK ~/.1password/agent.sock + +if [ -f ~/.1password/agent.sock ]; + set -g SSH_AUTH_SOCK ~/.1password/agent.sock +end + # Commands to run in interactive sessions can go here if status is-interactive if type -q atuin