Update (lazy commit)
[copyleftie-dotfiles.git] / lib / profile
bloba181927211b0e23992e41608d4b6410e8c82a0a7
1 multisubstitute {
2         importas HOME HOME
3         importas plan9 plan9
4         importas USER USER
5         importas PATH PATH
7 export home ${HOME}
9 export ABDUCO_CMD rc
10 export BROWSER firefox
11 export EDITOR ed
12 export MANPAGER nobs # see last paragraph of nobs(1)
13 export PAGER p
14 export SHELL /bin/rc
15 export SXHKD_SHELL /bin/execlineb
16 export VISUAL sam
18 export batt /sys/class/power_supply/BAT0 # bin/batt
20 define tmp /tmp/${USER}
21 export tmp ${tmp}
22 foreground {
23         if -n { mkdir -p /tmp/${USER} }
24                 fdmove -c 2 1
25                 echo failed to create \\${tmp} at ${tmp}
28 export lbpipe ${tmp}/bar # sv/bar/run , sv/bartext/run
30 define NQDIR ${tmp}/nq
31 export NQDIR ${NQDIR}
32 foreground {
33         if -n { mkdir -p ${tmp}/nq }
34                 fdmove -c 2 1
35                 echo failed to create \\${NQDIR} at ${NQDIR}
38 # ii(1) --- e.g., ii -i ${irc}
39 define irc ${tmp}/irc
40 export irc ${irc}
41 foreground {
42         if -n { mkdir -p ${tmp}/irc }
43                 fdmove -c 2 1
44                 echo failed to create \\${irc} at ${irc}
47 export NOCOLOR "" # https://no-color.org
49 # privoxy(1)/tor(1) chain --- /etc/privoxy/config:/forward-socks5t/
50 export HTTP_PROXY http://127.0.0.1:8118
51 export HTTPS_PROXY http://127.0.0.1:8118
52 export tabstop 8
54 export defpath ${PATH}
55 export PATH ${HOME}/bin:${plan9}/bin:${PATH}
56 export MBLAZE ${tmp}/mblaze
57 export MBLAZE_NOCOLOR "" # plan9 awk(1) throws floating point exceptions if unset
59 define maildir ${tmp}/Maildir
60 export maildir ${tmp}/Maildir
61 export inbox ${maildir}/INBOX
62 export outbox ${maildir}/OUTBOX
64 ifelse -n { redirfd -w 1 /dev/null pgrep -u ${USER} startx } {
65         startx
66 } #else
67         rc