This repository has been archived on 2022-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
prezto/plugins/pow/pow.plugin.zsh
Andrew Hodges 513938e5c3 Pow! Restart Helper
Add helper function to restart an app running on Pow!
2011-05-28 11:09:37 -04:00

11 lines
224 B
Bash

# Thanks to Christopher Sexton
# https://gist.github.com/965032
function kapow {
touch ~/.pow/$1/tmp/restart.txt
if [ $? -eq 0 ]; then
echo "$fg[yellow]Pow restarting $1...$reset_color"
fi
}
compctl -W ~/.pow -/ kapow