浏览代码

added alias

fred-o 12 年之前
父节点
当前提交
f644d2eb6f
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 0 1
      plugins/glassfish/_glassfish
  2. 3 0
      plugins/glassfish/glassfish.plugin.zsh

+ 0 - 1
plugins/glassfish/_glassfish

@@ -1 +0,0 @@
-

+ 3 - 0
plugins/glassfish/glassfish.plugin.zsh

@@ -0,0 +1,3 @@
+# if there is a user named 'glassfish' on the system, we'll assume
+# that is the user asadmin should be run as
+grep -e '^glassfish' /etc/passwd > /dev/null && alias asadmin='sudo -u glassfish asadmin'