commit 4a300705c7e655718670d3369c22182a39574cbb
parent 31fdd60c63f32cd9fe161f5e3cfd2803b930fb70
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Sun, 22 Nov 2020 15:02:04 -0800
Source ~/.profile in ksh initialization
I now remember why I used to do so, if you edit your profile while
under a process like dwm(1) you would need to restart dwm to give the
child processes, i.e. your shell, the new environment.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/ksh/.config/ksh.kshrc b/modules/ksh/.config/ksh.kshrc
@@ -4,7 +4,8 @@ set -Xbh
set -o vi
SHELL_MODULE_DIR="$XDG_CONFIG_HOME/shell"
-[ -f "$SHELL_MODULE_DIR/main" ] && . "$SHELL_MODULE_DIR/main"
+test -f "$SHELL_MODULE_DIR/main" && . "$SHELL_MODULE_DIR/main"
+test -f ~/.profile && . ~/.profile
HISTFILE="$HISTBASE/ksh/`date +%Y.%m`"
HISTSIZE="820000"