浏览代码

Pow! Restart Helper

Add helper function to restart an app running on Pow!
Andrew Hodges 14 年之前
父节点
当前提交
befb02e3da
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      plugins/pow/pow.plugin.zsh

+ 10 - 0
plugins/pow/pow.plugin.zsh

@@ -0,0 +1,10 @@
+# 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