Use the nicer approach to detect whether rock is installed

This commit is contained in:
Danielle McLean 2016-11-25 10:39:43 +11:00
parent 203ba14e78
commit d735183dcb
No known key found for this signature in database
GPG key ID: CC91589719027E94

View file

@ -10,7 +10,7 @@ newbins+=(~/.go/bin)
newbins+=(~/.cabal/bin ~/Library/Haskell/bin) newbins+=(~/.cabal/bin ~/Library/Haskell/bin)
# ooc # ooc
if whence rock >/dev/null; then if (( $+commands[rock] )); then
export -UT OOC_LIBS ooc_libs export -UT OOC_LIBS ooc_libs
ooc_libs=(/usr/local/Cellar/rock/*(N) $XDG_DATA_HOME/ooc) ooc_libs=(/usr/local/Cellar/rock/*(N) $XDG_DATA_HOME/ooc)
newbins+=($XDG_DATA_HOME/ooc/sam) newbins+=($XDG_DATA_HOME/ooc/sam)