ansible/roles/dotfiles/files/bin/em

16 lines
140 B
Plaintext
Raw Normal View History

2023-04-11 14:32:07 +00:00
#!/usr/bin/env bash
if [ -z "$DISPLAY" ]
then
NW=""
else
NW="-n"
fi
if [ -z "$@" ]
then
cd $HOME
fi
emacsclient $NW -c -a '' "$@"