dotfiles/.local/bin/scripts/launch

5 lines
155 B
Plaintext
Raw Normal View History

2020-09-04 10:16:46 +00:00
#!/bin/sh
#ps aux | grep -v $0 | grep -m 1 $1
echo -n "$1: "
pgrep ${2:-$1} -a | grep --color=never -m 1 . || ( echo Launching && ($1 >/dev/null 2>&1 &) )