| #!/bin/sh
|
|
|
| if [ $# -eq 0 ]
|
| then
|
| target="$HOME"
|
| else
|
| target="$@"
|
| fi
|
|
|
| if [[ $(emacsclient -n -e "(> (length (frame-list)) 1)" | grep t) == 't' ]]; then
|
| emacsclient -n -a "" "$target" &
|
| else
|
| emacsclient -c -n -a "$target" &
|
| fi
|