#!/bin/sh if [ "$1" = "-h" ]; then cat </dev/null 2>&1; then if emacsclient -e '(kill-emacs)' >/dev/null 2>&1; then echo "Emacs terminated." >&2 fi fi if [ -S "$SSH_AUTH_SOCK" ]; then echo "SSH agent terminated." >&2 eval "$(ssh-agent -k)" fi