mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Merge branch 'master' of github.com:jamesm-sitegen/oh-my-zsh
This commit is contained in:
commit
8e724fabbb
1 changed files with 6 additions and 3 deletions
|
|
@ -1,5 +1,4 @@
|
|||
function keychain_start_agent()
|
||||
{
|
||||
function keychain_start_agent() {
|
||||
local -a identities
|
||||
|
||||
# start ssh-agent and setup environment
|
||||
|
|
@ -24,10 +23,14 @@ function keychain() {
|
|||
keychain_start_agent;
|
||||
fi
|
||||
;;
|
||||
"kill")
|
||||
"stop")
|
||||
echo "Stopping agent"
|
||||
ssh-agent -k >/dev/null && [[ -f $ssh_env ]] && rm $ssh_env
|
||||
;;
|
||||
"status")
|
||||
[[ -f "$ssh_env" ]] && echo "$0: status is running" \
|
||||
|| echo "$0: status is stopped"
|
||||
;;
|
||||
*)
|
||||
echo "$0: invalid command $1" 2>&1
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue