#!/usr/bin/env bash if [ -z "$DISPLAY" ] then NW="" else NW="-n" fi if [ -z "$@" ] then cd $HOME fi emacsclient $NW -c -a '' "$@"