This commit is contained in:
James McGlashan 2011-12-02 17:23:42 +11:00
commit 4bf36130f4

View file

@ -28,6 +28,10 @@ function keychain() {
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
;;