1 # profile
3 I don't know how "portable" a .profile can be, but let's try!
5 Althought I'm not using acme as my go-to text editor program, I still
6 like to use it and have the rest of the plan9ports at hand.
8 I manually fetched and installed the ports in /usr/local/plan9, and need
9 to define $PLAN9 in order for the various tooling to work.
11 PLAN9=/usr/local/plan9
12 export PLAN9
14 I tend to have an abnormal $PATH
16 PATH=$HOME/bin:$HOME/opt/emacs/bin:$HOME/opt/gcc10/bin:$HOME/go/bin:$HOME/opt/unnethack/bin:$HOME/.local/bin:$HOME/.node_modules/bin:/home/ports/infrastructure/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:/usr/local/jdk-11/bin:$PLAN9/bin
18 Let's split it:
20 * $HOME/bin is for my personal scripts, needs to take precedence over anything else
21 * $HOME/opt/* contains various stuff I compile from source, like Emacs
22 * $HOME/.local/bin is XDG stuff I'm practically forced to use
23 * $HOME/.node_modules/bin is for node
24 * /usr/ports/infrastructure/bin is for handy port tools
25 * the rest is just the usual $PATH on OpenBSD with java and plan9 pushed at the end
27 Tell npm to install things globally in the right directory
29 export npm_config_prefix=~/.node_modules
31 ksh doesn't have a "default" configuration file (like ~/.zshrc or
32 ~/.bashrc); instead, if called interactively, it loads the file pointed
33 by ENV. Tell ksh to load ~/.kshrc then
35 export ENV=$HOME/.kshrc
37 An UTF-8 locale is mandatory. I'm using en_US even if english is not my
38 main language:
40 export LANG=en_US.UTF-8
42 Got is quickly becoming my favourite version control system. It should
43 be able to load the author data from a config file, but I still keep
44 this variable, just in case :)
46 export GOT_AUTHOR="Omar Polo <>"
48 Sometimes I need to do stuff with Docker. I have a virtual machine
49 running alpine with docker configured and this bit here will allow
50 docker-cli to transparently talk to the VM:
52 export DOCKER_HOST=ssh://op@
54 I had this revelation. I don't MoGrify text. I don't VIsualize files.
55 I EDit them!
57 EDITOR=ed
58 export EDITOR
60 less(1) should be the default pager pretty most everywhere, but ensure
61 that!
63 export MANPAGER=less
65 I've found a cool pager for postgresql, pspg. It's designed explicitly
66 for tabular data. Extra points for having some cool light themes! Tao
67 light theme (number 20) is my favourite.
69 export PSQL_PAGER='pspg -s20'
71 I'm using reposync to manage my local clone of the OpenBSD source tree.
72 Technically this isn't needed, because /home/ports is already a checkout
73 from /home/cvs, but anyway...
75 export CVSROOT=/home/cvs
77 This is just to make some command outputs a little bit nicer:
79 export BLOCKSIZE=1m
81 I don't particularly like coloured outputs when I'm in front of a
82 terminal, so I tend to disable them:
84 export NO_COLOR='yes, please'
86 export WG_COLOR_MODE=never
87 export AV_LOG_FORCE_NOCOLOR='fuck yes'
89 an exception I'm trying to enable colors in tog(1) (cautiously!)
90 and see how it goes:
92 export TOG_COLORS=yes
93 export TOG_COLOR_DIFF_MINUS=magenta
94 export TOG_COLOR_DIFF_PLUS=blue
96 export TOG_COLOR_DIFF_META=default
97 export TOG_COLOR_COMMIT=default
98 export TOG_COLOR_AUTHOR=default
99 export TOG_COLOR_DATE=default
102 some other tweaks for tog
104 export TOG_DIFF_ALGORITHM=patience
105 export TOG_VIEW_SPLIT_MODE=h
107 mblaze uses quoted-printable if there are lines longer than 78 character
108 or so. if $MBLAZE_RELAXED_MIME is specified tho, it will only do so if
109 it founds lines longer than 998 characters, allowing me to send diffs
110 without mangling!
114 On OpenBSD, automake and autoconf requires these variables to be up to
115 work. Otherwise one can run automake-X.Y and autoconf-X.Y, but that's
116 ugly:
118 export AUTOCONF_VERSION=2.71
119 export AUTOMAKE_VERSION=1.16
121 Finally, load the specific profile for this machine if it exists:
123 if [ -f "$HOME/.profile-local" ]; then
124 . "$HOME/.profile-local"
125 fi