Change .profile EDITOR back since that's set in .kshrc; do EDITOR check in .kshrc; new TODOs
This commit is contained in:
parent
7b0358189d
commit
5cad5f4a64
@ -4,3 +4,8 @@ Dotfiles. For NetBSD.
|
|||||||
|
|
||||||
The `my_home` represents `$HOME` to keep directory structure for
|
The `my_home` represents `$HOME` to keep directory structure for
|
||||||
things that don't use `$HOME/.config`.
|
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
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
if [ -x /usr/games/fortune ]; then
|
# .kshrc 3/14/2025 <swaggboi@gangstalking.agency>
|
||||||
echo
|
|
||||||
/usr/games/fortune
|
# Need to do the 'login shell' test before running this
|
||||||
echo
|
#if [ -x /usr/games/fortune ]; then
|
||||||
fi
|
# /usr/games/fortune
|
||||||
|
# echo
|
||||||
|
#fi
|
||||||
|
|
||||||
# user specific aliases
|
# user specific aliases
|
||||||
alias l='ls -lhF'
|
alias l='ls -lhF'
|
||||||
@ -18,7 +20,12 @@ alias n='cat -n'
|
|||||||
|
|
||||||
# exports
|
# exports
|
||||||
export PS1='$USER:/${PWD#/}:!$ '
|
export PS1='$USER:/${PWD#/}:!$ '
|
||||||
export EDITOR='mg'
|
|
||||||
export PATH="$HOME/bin:$PATH"
|
export PATH="$HOME/bin:$PATH"
|
||||||
export HISTFILE="$HOME/.sh_history"
|
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
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# software will run ed and other software will fail. Can be set to
|
# 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
|
# emacs or nano or whatever other editor you may prefer, but of course
|
||||||
# those editors must be installed before you can use them.
|
# 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
|
# vi settings: set show-match auto-indent always-redraw shift-width=4
|
||||||
#export EXINIT="se sm ai redraw sw=4"
|
#export EXINIT="se sm ai redraw sw=4"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user