Permalink
Browse files

fix a typo in the last patch: use `which` in a more linux-compatible way

  • Loading branch information...
1 parent f3a275e commit 68a4b7343e83fb48a60434a4373e484d7dc358d0 @wadey wadey committed Sep 13, 2010
Showing with 4 additions and 4 deletions.
  1. +2 −2 zsh.d/S10_zshopts
  2. +2 −2 zsh.d/S40_aliases
View
@@ -1,8 +1,8 @@
#!/bin/zsh
-if /usr/bin/which gdircolors >-; then
+if /usr/bin/which gdircolors >&-; then
eval `gdircolors -b`
-elif /usr/bin/which dircolors >-; then
+elif /usr/bin/which dircolors >&-; then
eval `dircolors -b`
else
echo_warn "No dircolors command found"
View
@@ -14,7 +14,7 @@ done
# ls
if [ $(uname) = 'Darwin' ]; then
- if /usr/bin/which gls >-; then
+ if /usr/bin/which gls >&-; then
alias ls='gls -F --color'
else
echo_warn "On Darwin and 'gls' not found"
@@ -58,7 +58,7 @@ alias h=history
alias vi=vim
if [ $(uname) = 'Darwin' ]; then
- if /usr/bin/which mvim >-; then
+ if /usr/bin/which mvim >&-; then
alias vim='mvim -v'
fi
fi

0 comments on commit 68a4b73

Please sign in to comment.