B4PZNM4LGYALBYO4JGWBR2D6DAAP2CDTJDYMTMMSEHTOOW6DXA6QC emacs() {if ! ps aux | grep -v grep | grep -q 'emacs.* \-\-daemon'; then/usr/local/bin/emacs --daemon > /dev/null 2>&1fi;passed_args="$@"if [ $(echo -n "$passed_args" | wc -c) -lt "1" ]; thenecho "USAGE: emacs [PATH TO FILE] [OPTIONAL ARGS PASSED TO EMACS CLIENT]"return 1fi;if ! ps aux | grep -v grep | grep -q 'emacsclient -c'; then# create an emacsclient frame if one does not exist otherwise use existing framepassed_args="-c $passed_args"fi;/usr/local/bin/emacsclient "$passed_args" > /dev/null &}