dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git
Log | Files | Refs | README

commit ea8783cd75b9b86dad5ea44d000cf55f01ca36ff
parent 37117872f371810e9c52c05c29e1809189efbf06
Author: Duncaen <mail@duncano.de>
Date:   Sun, 10 May 2015 12:22:29 +0200

mkshrc: add runit aliases

Diffstat:
mkshrc | 24+++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/mkshrc b/mkshrc @@ -424,8 +424,30 @@ alias xi='sudo xbps-install' alias xr='sudo xbps-remove' alias xq='xbps-query' +# runit +alias svls='sudo sv s /var/service/*' +alias svu='sudo sv start' +alias svd='sudo sv stop' +alias svr='sudo sv restart' + +function sva { + if [ -r /etc/sv/$1 ]; then + sudo ln -sv /etc/sv/$1 /var/service + else + echo "Service $1 not found" + fi +} + +function svrm { + if [ -r /var/service/$1 ]; then + sudo rm -v /var/service/$1 + else + echo "Service $1 not found" + fi +} + # colors -if [[ ${HOSTNAME} != 'pi' ]]; then +if [ ${HOSTNAME} != "pi" ]; then alias ld='grc -es --colour=auto ld' alias ss='grc -es --colour=auto ss' alias ps='grc -es --colour=auto ps'