From d735183dcb659fc6bcf1426e5ba940628aa81e6b Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Fri, 25 Nov 2016 10:39:43 +1100 Subject: [PATCH] Use the nicer approach to detect whether rock is installed --- config/zsh/login/langs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/zsh/login/langs b/config/zsh/login/langs index 1b27097..56083a9 100644 --- a/config/zsh/login/langs +++ b/config/zsh/login/langs @@ -10,7 +10,7 @@ newbins+=(~/.go/bin) newbins+=(~/.cabal/bin ~/Library/Haskell/bin) # ooc -if whence rock >/dev/null; then +if (( $+commands[rock] )); then export -UT OOC_LIBS ooc_libs ooc_libs=(/usr/local/Cellar/rock/*(N) $XDG_DATA_HOME/ooc) newbins+=($XDG_DATA_HOME/ooc/sam)