mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-29 01:00:08 +00:00
command to restart pow process
This commit is contained in:
parent
640e5da688
commit
8d1fa09007
1 changed files with 9 additions and 0 deletions
|
@ -72,5 +72,14 @@ powed(){
|
|||
find ~/.pow/ -type l -lname "*$basedir*" -exec basename {}'.dev' \;
|
||||
}
|
||||
|
||||
# Restart pow process
|
||||
# taken from http://www.matthewratzloff.com/blog/2011/12/23/restarting-pow-when-dns-stops-responding
|
||||
repow(){
|
||||
lsof | grep 20560 | awk '{print $2}' | xargs kill -9
|
||||
launchctl unload ~/Library/LaunchAgents/cx.pow.powd.plist
|
||||
launchctl load ~/Library/LaunchAgents/cx.pow.powd.plist
|
||||
echo "restarted pow"
|
||||
}
|
||||
|
||||
# View the standard out (puts) from any pow app
|
||||
alias kaput="tail -f ~/Library/Logs/Pow/apps/*"
|
Loading…
Reference in a new issue