Use the nicer approach to detect whether rock is installed
This commit is contained in:
parent
203ba14e78
commit
d735183dcb
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue