mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-24 04:46:31 +00:00
Add luarocks paths
This commit is contained in:
parent
4d722b5458
commit
586fda352e
@ -80,6 +80,15 @@ if type npm &> /dev/null ; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Add luarocks paths
|
||||
if type luarocks &> /dev/null ; then
|
||||
eval "$(luarocks path)"
|
||||
luarocks_bin=$HOME/.luarocks/bin
|
||||
if [ -d "$luarocks_bin" ] && echo "$PATH" | grep -qv "$luarocks_bin"; then
|
||||
export PATH=$PATH:$luarocks_bin
|
||||
fi
|
||||
fi
|
||||
|
||||
# Increase memory sizes for java using Ant
|
||||
export ANT_OPTS="-Xmx2048m -Xms512m"
|
||||
|
||||
|
@ -80,6 +80,15 @@ if type npm &> /dev/null ; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Add luarocks paths
|
||||
if type luarocks &> /dev/null ; then
|
||||
eval "$(luarocks path)"
|
||||
luarocks_bin=$HOME/.luarocks/bin
|
||||
if [ -d "$luarocks_bin" ] && echo "$PATH" | grep -qv "$luarocks_bin"; then
|
||||
export PATH=$PATH:$luarocks_bin
|
||||
fi
|
||||
fi
|
||||
|
||||
# Other stuff
|
||||
|
||||
# Set prompt to include some useful information
|
||||
|
@ -56,6 +56,12 @@ if command -q npm
|
||||
_maybe_set -a PATH "$npm_path"
|
||||
end
|
||||
|
||||
# Add luarocks paths
|
||||
if command -q luarocks
|
||||
eval (luarocks path | sed "s/export/set -gx/;s/=/ /")
|
||||
_maybe_set -a PATH "$HOME/.luarocks/bin"
|
||||
end
|
||||
|
||||
# Add rust cargo path
|
||||
_maybe_set -p PATH "$HOME/.cargo/bin"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user