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