Shell: added 'lri: luarocks install' function

master
Pierre Neidhardt 2014-04-24 11:39:55 +02:00
parent ac262bcff5
commit c48a7f2591
4 changed files with 156 additions and 143 deletions

View File

@ -163,3 +163,4 @@ block-insecure-content=false
enable-ipc=true
adblocker-element-hider=true

1
.scripts/emw Symbolic link
View File

@ -0,0 +1 @@
em

View File

@ -341,3 +341,14 @@ if [ -d "/usr/local/texlive" ]; then
sudo sh -c 'umask 022 && tlmgr remove $0 $@' "$@"
}
fi
##==============================================================================
## Luarocks functions
##==============================================================================
if command -v luarocks >/dev/null 2>&1; then
lri ()
{
sudo sh -c 'umask 022 && luarocks install $0 $@' "$@"
}
fi