rename _lazy_ssh to __lazy_ssh_agent for clairification
This commit is contained in:
6
.bashrc
6
.bashrc
@@ -12,7 +12,7 @@ esac
|
|||||||
[ -z "${PS1-}" ] && return
|
[ -z "${PS1-}" ] && return
|
||||||
|
|
||||||
# lazy loading of ssh agents
|
# lazy loading of ssh agents
|
||||||
_lazy_ssh() {
|
__lazy_ssh_agent() {
|
||||||
if [ -z "$SSH_AUTH_SOCK" ]; then
|
if [ -z "$SSH_AUTH_SOCK" ]; then
|
||||||
eval "$(ssh-agent -s)" >/dev/null
|
eval "$(ssh-agent -s)" >/dev/null
|
||||||
ssh-add "$HOME/.ssh/github" >/dev/null 2>&1
|
ssh-add "$HOME/.ssh/github" >/dev/null 2>&1
|
||||||
@@ -21,8 +21,8 @@ _lazy_ssh() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
# aliases so the function is called beforehand
|
# aliases so the function is called beforehand
|
||||||
alias ssh='_lazy_ssh; ssh'
|
alias ssh='__lazy_ssh_agent; ssh'
|
||||||
alias sudo='_lazy_ssh; sudo'
|
alias sudo='__lazy_ssh_agent; sudo'
|
||||||
|
|
||||||
# alias to colourise make output
|
# alias to colourise make output
|
||||||
_make() {
|
_make() {
|
||||||
|
|||||||
Reference in New Issue
Block a user