Change .profile EDITOR back since that's set in .kshrc; do EDITOR check in .kshrc; new TODOs

This commit is contained in:
swagg boi 2025-03-15 00:43:34 +00:00
parent 7b0358189d
commit 5cad5f4a64
3 changed files with 20 additions and 8 deletions

View File

@ -4,3 +4,8 @@ Dotfiles. For NetBSD.
The `my_home` represents `$HOME` to keep directory structure for
things that don't use `$HOME/.config`.
## TODO
- Login shell check to do fortune output (breaks `rsync`)
- Make `mg` stop leaving those damn tilde files

View File

@ -1,8 +1,10 @@
if [ -x /usr/games/fortune ]; then
echo
/usr/games/fortune
echo
fi
# .kshrc 3/14/2025 <swaggboi@gangstalking.agency>
# Need to do the 'login shell' test before running this
#if [ -x /usr/games/fortune ]; then
# /usr/games/fortune
# echo
#fi
# user specific aliases
alias l='ls -lhF'
@ -18,7 +20,12 @@ alias n='cat -n'
# exports
export PS1='$USER:/${PWD#/}:!$ '
export EDITOR='mg'
export PATH="$HOME/bin:$PATH"
export HISTFILE="$HOME/.sh_history"
export PKG_PATH="http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/10.1/All/"
export PKG_PATH="http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/10.1/All/"
if command -v emacs > /dev/null 2>&1; then
export EDITOR='emacs -nw'
elif command -v mg > /dev/null 2>&1; then
export EDITOR='mg'
fi

View File

@ -13,7 +13,7 @@
# software will run ed and other software will fail. Can be set to
# emacs or nano or whatever other editor you may prefer, but of course
# those editors must be installed before you can use them.
export EDITOR=mg
export EDITOR=vi
# vi settings: set show-match auto-indent always-redraw shift-width=4
#export EXINIT="se sm ai redraw sw=4"