diff options
author | Guillermo Ramos | 2022-01-20 11:57:06 +0100 |
---|---|---|
committer | Guillermo Ramos | 2022-01-20 11:57:06 +0100 |
commit | 873f7db8b02637d75dfd5b709f0a33fa529175e5 (patch) | |
tree | acb2d95dce049f86241b1761ce642246aa5a3e7c /gruake | |
parent | e6ff299df50fe5db6037a0800144a22e4157b2c6 (diff) | |
download | cli-873f7db8b02637d75dfd5b709f0a33fa529175e5.tar.gz |
gruake: simplify
Diffstat (limited to 'gruake')
-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' & |