Permalink
Browse files

--user -> -u for Mac OS X

id on Mac OS X doesn't support --user option. :<
  • Loading branch information...
1 parent b8f1852 commit ddbe8dd049381f941b512d89f97e05b150fb2835 @kou kou committed Feb 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 zshenv
View
2 zshenv
@@ -49,7 +49,7 @@ typeset -U sudo_path
sudo_path=({,/usr/pkg,/usr/local,/usr}/sbin(N-/))
# rootの場合はsudo用のパスもPATHに加える。
-if [ $(id --user) -eq 0 ]; then
+if [ $(id -u) -eq 0 ]; then
path=($sudo_path $path)
fi

0 comments on commit ddbe8dd

Please sign in to comment.