diff options
Diffstat (limited to 'sh/profile')
-rw-r--r-- | sh/profile | 41 |
1 files changed, 31 insertions, 10 deletions
@@ -1,17 +1,38 @@ -# Add ~/.local/bin to PATH if it exists -if [ -d "$HOME"/.local/bin ] ; then - PATH=$HOME/.local/bin:$PATH -fi +# Use lynx as our terminal browser +BROWSER=lynx +export BROWSER -# Load all supplementary scripts in ~/.profile.d +# Use ed as our line editor and vi as our visual editor +EDITOR=ed +VISUAL=vi +export EDITOR VISUAL + +# Set the POSIX interactive startup file to ~/.shinit +ENV=$HOME/.shinit +export ENV + +# Use NZ English, but bytewise sorting +LANG=en_NZ.UTF-8 +LANGUAGE=en_NZ:en +LC_COLLATE=C +export LANG LANGUAGE LC_COLLATE + +# Use less as my pager +PAGER=less +export PAGER + +# Assume I'm at home unless something overrides it +TZ=Pacific/Auckland +export TZ + +# Source all scripts in ~/.profile.d; many of them will be modifying $PATH, so +# we'll get that sorted out first for sh in "$HOME"/.profile.d/*.sh ; do [ -e "$sh" ] || continue . "$sh" done unset -v sh -# If ~/.shinit exists, set ENV to that -if [ -f "$HOME"/.shinit ] ; then - ENV=$HOME/.shinit - export ENV -fi +# Add ~/.local/bin and ~/.local/games to the very front of PATH, so that it +# overrides everything else +PATH=$HOME/.local/bin:$HOME/.local/games:$PATH |