aboutsummaryrefslogtreecommitdiff
path: root/dot_kshrc
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2023-12-20 10:51:29 -0500
committerRyan Kavanagh <rak@rak.ac>2023-12-20 10:51:29 -0500
commit053ec2ca30fec50416f723e431d49c4fa6cb9719 (patch)
tree83d1943332fdba3f0ecdf8f606f7026e000b4f2a /dot_kshrc
parentBackup ~/.klog (diff)
Split out some common shell config options
Diffstat (limited to 'dot_kshrc')
-rw-r--r--dot_kshrc6
1 files changed, 4 insertions, 2 deletions
diff --git a/dot_kshrc b/dot_kshrc
index 9a52a09..6a1ce8d 100644
--- a/dot_kshrc
+++ b/dot_kshrc
@@ -1,12 +1,14 @@
[ -f /etc/ksh.kshrc ] && . /etc/ksh.kshrc || true
-export PPROMPT='<$USER@$HOST:$PWD:!>'"$PS1S"
+export PPROMPT='<$USER@$HOST:$PWD:!> '"$PS1S"
export PS1=$PPROMPT
export HISTFILE="$HOME/.ksh_history"
export HISTSIZE=5000
-[ -f "${HOME}/.config/sh/xdg-base-dirs" ] && . "${HOME}/.config/sh/xdg-base-dirs"
+for common in ${HOME}/.config/sh/*; do
+ [ -f "${common}" ] && . "${common}"
+done
export VISUAL="vim"
export EDITOR="$VISUAL"