Add luarocks paths

This commit is contained in:
ViViDboarder 2021-12-14 18:06:30 -08:00
parent 4d722b5458
commit 586fda352e
3 changed files with 24 additions and 0 deletions

View File

@ -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"

View File

@ -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

View File

@ -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"