dot

packages and services management
Log | Files | Refs | README

commit bb161d4203b379328101e2bfba624f8323d470c0
parent 6f437f8eecbb84fd528c3ebfd84921d3a647ef89
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu,  4 May 2017 01:33:15 +0200

(re)moving scripts

Diffstat:
M.profile | 25+++++++++++++++++--------
Rbin/rfc -> bin/doc-rfc | 0
Rbin/wiki -> bin/doc-wiki | 0
Mbin/io-mail | 2+-
Dbin/service-http | 5-----
Dbin/service-ii | 38--------------------------------------
Dbin/service-irc | 5-----
7 files changed, 18 insertions(+), 57 deletions(-)

diff --git a/.profile b/.profile @@ -1,6 +1,7 @@ # plan 9 PLAN9="$HOME/9" + export PLAN9 @@ -10,6 +11,7 @@ OPT="$HOME/opt" SRC="$HOME/src" ETC="$HOME/etc" ROOT="$HOME/.local" + export OPT SRC ETC VAR BIN ROOT @@ -19,9 +21,19 @@ GIT="$HOME/git" IRC="$HOME/var/irc" MAIL="$HOME/var/mail/INBOX" MUSIC="$HOME/music" + export GIT IRC MAIL MUSIC +# libraries + +LIBPATH="$ROOT/lib:$LIBPATH" +LD_RUN_PATH="$ROOT/lib:$LD_RUN_PATH" +LD_LIBRARY_PATH="$ROOT/lib:$LD_LIBRARY_PATH" + +export MANPATH LIBPATH LD_RUN_PATH LD_LIBRARY_PATH + + # system paths ENV="$HOME/.profile" @@ -31,15 +43,8 @@ PATH="$( sed 's/:$//' )" MANPATH="$ETC/man:$ROOT/share/man:$ROOT/man:$MANPATH" -export ENV MANPATH - - -# libraries -LIBPATH="$ROOT/lib:$LIBPATH" -LD_RUN_PATH="$ROOT/lib:$LD_RUN_PATH" -LD_LIBRARY_PATH="$ROOT/lib:$LD_LIBRARY_PATH" -export MANPATH LIBPATH LD_RUN_PATH LD_LIBRARY_PATH +export ENV MANPATH # info @@ -48,6 +53,7 @@ NAME='Josuah Demangeon' NICK='josuah' EMAIL='mail@josuah.net' TZ='Europe/Paris' + export NAME EMAIL TZ @@ -59,6 +65,7 @@ PAGER='less' MANPAGER='less -R' DVTM_PAGER='less -R' BROWSER='chromium' + export EDITOR VISUAL PAGER MANPAGER DVTM_PAGER BROWSER @@ -72,6 +79,7 @@ $( $(jobs | wc -l | sed s/0//)» ' PS2=' » ' PS3=' » ' + export PS1 PS2 PS3 @@ -103,6 +111,7 @@ alias c='cd "$(find "$HOME" -type d | iomenu -p cd)"' alias inv='printf "\033[?5%s" h' alias myip='curl icanhazip.com' alias ix='curl -F "f:1=<-" ix.io' +alias w1r3='curl -F upload=@- https://w1r3.net' alias wttr='wget -qO- wttr.in' alias lines='find . -name "*.[ch]" | xargs wc -l | sort -g' alias count='echo "$(( diff --git a/bin/rfc b/bin/doc-rfc diff --git a/bin/wiki b/bin/doc-wiki diff --git a/bin/io-mail b/bin/io-mail @@ -1,7 +1,7 @@ # list mail from all inboxes using mblaze # sort messages -mdirs "$1" | mlist | msort -r -d | mthread | mseq -S | +mdirs "$1" | mlist | mthread | msort -r -d | mseq -S | # prompt for a mail with iomenu mscan -f '%6n %u %D %20f %t%2i%120S' | iomenu -p mail | diff --git a/bin/service-http b/bin/service-http @@ -1,5 +0,0 @@ -# start http server as root on port :80 - -sudo killall darkhttpd - -sudo $(which darkhttpd) ~/src/www --daemon diff --git a/bin/service-ii b/bin/service-ii @@ -1,38 +0,0 @@ -# connect to my irc server and channels - -printf 'Password: ' -IFS='' read -r PASS - -printf '\033[A\r\033[KNick: ' -IFS='' read -r NICK - -export PASS NICK - -ii -n NICK -k IIPASS -s irc.freenode.net & -tee -a ~/irc/irc.freenode.net/in << EOF -/privmsg nickserv IDENTIFY PASS -/j ##networking -/j ##c -/j #2f30 -/j #cat-v -/j #breizh-entropy -EOF - -ii -n NICK -k PASS -s irc.oftc.net & -tee -a ~/irc/irc.oftc.net/in << EOF -/privmsg nickserv IDENTIFY PASS -/j #suckless -/j #cryptoparty -EOF - -ii -n NICK -k PASS -s unix.chat -e 6697 & -tee -a ~/irc/unix.chat/in << EOF -/privmsg nickserv IDENTIFY PASS -/j #unix -EOF - -ii -n NICK -k PASS -s irc.geeknode.net -e 6697 & -tee -a ~/irc/irc.geeknode.net/in << EOF -/privmsg nickserv IDENTIFY PASS -/j #labriqueinter.net -EOF diff --git a/bin/service-irc b/bin/service-irc @@ -1,5 +0,0 @@ -# start the irc stakc: server, logs, web interface - -ngircd -f ~/.config/ngircd/ngircd.conf -ii -s 0.0.0.0 -n daemon & -node ~/node_modules/thelounge/index.js