This paste expires on 2023-04-09 21:48:57.223185. Repaste, or download this paste. . Pasted through web.

#!/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
Filename: None. Size: 255b. View raw, , hex, or download this file.