Make it clear which agent the message refers to.
This commit is contained in:
parent
b49f6a0642
commit
6920a2a8f0
1 changed files with 3 additions and 3 deletions
6
.bashrc
6
.bashrc
|
@ -74,7 +74,7 @@ __read_ssh_agents() {
|
|||
SSH_AGENTS_MTIME="${SSH_AGENTS_MTIME/\.}"
|
||||
|
||||
# Error out if the data couldn't be read.
|
||||
(( ERR != 0 )) && { printf "\\033[1;31;40m%s\\033[0;39m\\n" "Failed to read ssh agent socket list." >&2; unset SSH_AUTH_SOCKS; return 1; }
|
||||
(( ERR != 0 )) && { printf "\\033[1;31;40m%s\\033[0;39m\\n" "Failed to read ssh-agent socket list." >&2; unset SSH_AUTH_SOCKS; return 1; }
|
||||
return 0
|
||||
}
|
||||
|
||||
|
@ -145,7 +145,7 @@ __write_ssh_agents() {
|
|||
rm -f ~/.ssh/agents.lock
|
||||
|
||||
# Error out if the data couldn't be written.
|
||||
(( ERR != 0 )) && { printf "\\033[1;31;40m%s\\033[0;39m\\n" "Failed to write ssh agent socket list." >&2; return 1; }
|
||||
(( ERR != 0 )) && { printf "\\033[1;31;40m%s\\033[0;39m\\n" "Failed to write ssh-agent socket list." >&2; return 1; }
|
||||
return 0
|
||||
}
|
||||
|
||||
|
@ -169,7 +169,7 @@ __ssh_agent_prompt_command() {
|
|||
|
||||
# Find a new socket to use.
|
||||
if __find_ssh_agent_sock; then
|
||||
printf "\\033[1;33;40m%s\\033[0;39m\\n" "Connected to existing agent socket."
|
||||
printf "\\033[1;33;40m%s\\033[0;39m\\n" "Connected to existing ssh-agent socket."
|
||||
else
|
||||
# Start a new agent.
|
||||
eval "$(ssh-agent -s 2>/dev/null | grep -v 'echo'; printf "%s" "ERR=${PIPESTATUS[0]}")"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue