Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 10 lines (8 sloc) 121 Bytes
# Silly Utilities: toggle
# Toggle a process.
#!/bin/dash
if pgrep $1 > /dev/null; then
pkill "$1"
else
"$@" &
fi