Move ssh socket loading to .profile.
This commit is contained in:
8
.profile
8
.profile
@@ -35,6 +35,14 @@ export XDG_CACHE_HOME="$HOME/.var/cache" # ~/.cache /var/cache
|
||||
# coloured GCC warnings and errors
|
||||
export GCC_COLORS=auto
|
||||
|
||||
# Load the SSH agent
|
||||
[ -z "$SSH_AUTH_SOCK" ] && {
|
||||
eval "$(ssh-agent -s)" >/dev/null
|
||||
ssh-add "$HOME/.ssh/github" >/dev/null 2>&1
|
||||
ssh-add "$HOME/.ssh/gitea" >/dev/null 2>&1
|
||||
ssh-add "$HOME/.ssh/admin@homeserver" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
# if executing interactively
|
||||
# execute .bashrc in the current login context
|
||||
case $- in
|
||||
|
||||
Reference in New Issue
Block a user