diff options
-rwxr-xr-x | gruake | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -4,9 +4,7 @@ # Powered by urxvt+tmux. ################################################################################ -if pid=$(pgrep -f 'urxvt.*gruake'); then - kill "$pid" -else +if ! pkill -f 'urxvt.*gruake'; then if [ -t 0 ]; then # If running in a tty, spawn terminal in background urxvt -name gruake -e sh -c 'tmux new -A -s gruake' & |