Skip to content

Commit

Permalink
adding github login on host
Browse files Browse the repository at this point in the history
  • Loading branch information
sysadmin4j committed May 27, 2024
1 parent a9658fe commit 8e75abc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .zshrc.macos
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ alias repos="cd ${IDE_WORKSPACE}"
# History
export HISTFILE=${HOME}/.local/state/zsh/.zsh_history
setopt share_history

# not on ssh login, if the ssh agent has no identities, login to github.com
if [[ -z "$SSH_TTY" ]]; then
ssh-add -l |grep -q "The agent has no identities." && ssh -T git@github.com
fi

0 comments on commit 8e75abc

Please sign in to comment.