XDG-ify ooc's user library directory and handle it a little more cleanly

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

View file

@ -11,8 +11,9 @@ newbins+=(~/.cabal/bin ~/Library/Haskell/bin)
# ooc
if whence rock >/dev/null; then
export OOC_LIBS=/usr/local/Cellar/rock/0.9.10:~/.ooc
newbins+=(~/.ooc/sam)
export -UT OOC_LIBS ooc_libs
ooc_libs=(/usr/local/Cellar/rock/*(N) $XDG_DATA_HOME/ooc)
newbins+=($XDG_DATA_HOME/ooc/sam)
fi
# ruby