diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2022-07-29 01:31:32 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2022-07-29 01:31:32 +1200 |
commit | 5bad95b47ef6b594a307fdd454641e99bec5947e (patch) | |
tree | b11b35270ab14e4a6c0b62eda1db7f105276f6ca /sh/profile | |
parent | Remove disused $OS env var and switch (diff) | |
download | dotfiles-5bad95b47ef6b594a307fdd454641e99bec5947e.tar.gz dotfiles-5bad95b47ef6b594a307fdd454641e99bec5947e.zip |
Massively cut down profile scripts
Let's simplify all this a bit.
Diffstat (limited to 'sh/profile')
-rw-r--r-- | sh/profile | 31 |
1 files changed, 23 insertions, 8 deletions
@@ -1,15 +1,30 @@ -# Add ~/.local/bin to PATH -PATH=$HOME/.local/bin:$PATH +# Use lynx as our terminal browser +export BROWSER=lynx -# Load all supplementary scripts in ~/.profile.d +# Use ed as our line editor and vi as our visual editor +export EDITOR=ed +export VISUAL=vi + +# Set the POSIX interactive startup file to ~/.shinit +export ENV=$HOME/.shinit + +# Always use bytewise sorting +export LC_COLLATE=C + +# Use less as my pager +export PAGER=less + +# Assume I'm at home unless something overrides it +export TZ=Pacific/Auckland + +# 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 |