diff --git a/private_dot_config/fish/config.fish b/private_dot_config/fish/config.fish index c7e4470..6e3570c 100644 --- a/private_dot_config/fish/config.fish +++ b/private_dot_config/fish/config.fish @@ -3,7 +3,7 @@ set fish_greeting # Plugins installation and configuration # The fish_inclusion variable is used to avoid multiple inclusions of the plugins # because of the fish configuration file being sourced every time fisher is called -# Everithing related to the plugins must be in the if block +# Everything related to the plugins must be in the if block if not set -q fish_inclusion set -U fish_inclusion 1 @@ -37,6 +37,13 @@ if not set -q fish_inclusion set -eU fish_inclusion end +# Set the ssh keys +if not pgrep ssh-agent > /dev/null + eval (ssh-agent -c | string split ';') +end +set -x SSH_AUTH_SOCK (ssh-agent -s | grep -oP '(?<=SSH_AUTH_SOCK=)[^;]+') +ssh-add ~/.ssh/id_ed25519 &> /dev/null +ssh-add ~/.ssh/hexasec &> /dev/null # Set personal aliases # For a full list of active aliases, run `alias`.