diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index a9d1be8..ae7ebde 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -3,8 +3,16 @@ set -x PATH $PATH ~/.local/bin ~/.go/bin set -x EDITOR nano -## Go utils +## SSH init +set -x SSH_AUTH_SOCK $XDG_RUNTIME_DIR/ssh-agent.socket +for f in (ls .ssh/*.pub); + set -l priv (string replace '.pub' '' $f); + if not contains $priv (ssh-add -l | awk '{ print $3 }') + ssh-add $priv + end +end +## Go utils set -x GOPATH ~/.go