Write ssh agents file after starting new agent.
This commit is contained in:
parent
6b475431d3
commit
dbe8f672f9
1 changed files with 2 additions and 0 deletions
2
.bashrc
2
.bashrc
|
|
@ -207,6 +207,7 @@ __ssh_agent_prompt_command() {
|
|||
return 1
|
||||
}
|
||||
printf "\\033[1;32;40m%s\\033[0;39m\\n" "Started new ssh-agent."
|
||||
__write_ssh_agents
|
||||
fi
|
||||
}
|
||||
return 0
|
||||
|
|
@ -283,6 +284,7 @@ hash grep >/dev/null 2>&1 && {
|
|||
hash nc >/dev/null 2>&1 && alias pastebin='nc termbin.com 9999'
|
||||
|
||||
# Auto start the ssh agent and add keys for scp/sftp/ssh.
|
||||
__ssh_agent_prompt_command
|
||||
hash scp ssh ssh-add >/dev/null 2>&1 && alias scp='_EXEC=scp ssh'
|
||||
hash sftp ssh ssh-add >/dev/null 2>&1 && alias sftp='_EXEC=sftp ssh'
|
||||
hash ssh ssh-add >/dev/null 2>&1 && ssh() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue