From 163a8c03472d39ad79f96db9131f8c94f6b417ce Mon Sep 17 00:00:00 2001 From: DTB Date: Thu, 31 Aug 2023 15:31:41 -0400 Subject: [PATCH] make nicer --- trinitystuff/sh/aliases | 5 ----- trinitystuff/sh/env | 14 +++++++++----- trinitystuff/sh/profile | 15 +++++++++------ 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/trinitystuff/sh/aliases b/trinitystuff/sh/aliases index dd23097..12a443e 100644 --- a/trinitystuff/sh/aliases +++ b/trinitystuff/sh/aliases @@ -30,11 +30,6 @@ pyenv() { alias sensors="watch sensors" alias sudo="$SUDO" alias try="PREFIX=/home/trinity/src/trilsd/ /home/trinity/src/trilsd/dist/try" - -# Wacom Intuos 2 -#alias taboff="xsetwacom set 'Wacom Intuos2 6x8 Pen stylus' MapToOutput LVDS-1" -#alias tabon="xsetwacom set 'Wacom Intuos2 6x8 Pen stylus' MapToOutput VGA-1" - alias units="units --history /dev/null" alias v="$VISUAL" alias weather="curl wttr.in/lewiston+maine?m" diff --git a/trinitystuff/sh/env b/trinitystuff/sh/env index ad8b536..6bd9dd4 100644 --- a/trinitystuff/sh/env +++ b/trinitystuff/sh/env @@ -1,10 +1,14 @@ -if [ "$0" = "bash" ] || [ "$0" = "-bash" ]; then complete -c man which; fi +set -o vi + +test "$0" = bash || test "$0" = -bash \ + && complete -c man which \ + || true PS1="; " PS2="; " PS3="; " -set -o vi - -. $HOME/.aliases -. $HOME/.cargo/env +test -e "$HOME/.aliases" \ + && . $HOME/.aliases +test -e "$HOME/.cargo/env" \ + && . $HOME/.cargo/env diff --git a/trinitystuff/sh/profile b/trinitystuff/sh/profile index ad591d1..4ff8dc3 100644 --- a/trinitystuff/sh/profile +++ b/trinitystuff/sh/profile @@ -1,7 +1,8 @@ BROWSER=firefox; export BROWSER -EDITOR=/usr/lib/plan9/bin/ed; export EDITOR -PAGER="less"; export PAGER -PLAN9=/usr/local/plan9; export PLAN9 +test -f /usr/lib/plan9 && PLAN9=/usr/lib/plan9 +test -f /usr/local/plan9 && PLAN9=/usr/local/plan9 +export PLAN9 +EDITOR="$PLAN9/bin/sam -d"; export EDITOR PATH="\ /bin:\ /sbin:\ @@ -15,9 +16,11 @@ PATH="\ /usr/pkg/qt5/bin:\ /usr/X11R7/bin:\ $HOME/bin/:\ -$PLAN9/bin"; export PATH -TERMINAL="uxterm"; export TERMINAL -UNITS_SYSTEM="si"; export UNITS_SYSTEM +$PLAN9/bin:\ +$PATH"; export PATH +PAGER="less"; export PAGER +TERMINAL=uxterm; export TERMINAL +UNITS_SYSTEM=si; export UNITS_SYSTEM VISUAL=vi; export VISUAL WALLPAPER="$HOME/Pictures/Wallpapers/ghibli_wars.jpg"; export WALLPAPER