diff options
Diffstat (limited to 'config/ksh/kshrc')
-rw-r--r-- | config/ksh/kshrc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/config/ksh/kshrc b/config/ksh/kshrc new file mode 100644 index 0000000..abf9bf0 --- /dev/null +++ b/config/ksh/kshrc @@ -0,0 +1,22 @@ +#!/bin/ksh +export XDG_CACHE_HOME=${XDG_CACHE_HOME:=~/.cache} +export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:=~/.config} +export XDG_DATA_HOME=${XDG_DATA_HOME:=~/.local/share} +. $XDG_CONFIG_HOME/shrc +KSHCONFIG="$XDG_CONFIG_HOME/ksh" +if ! echo "$PATH"|grep -q ".local/bin"; then + export PATH="$HOME/.local/bin:$PATH" +fi + +HISTFILE=$XDG_DATA_HOME/ksh/histfile +HISTSIZE=5000 +HISTCONTROL="ignoredups" +TMPDIR=$XDG_CACHE_HOME/ksh + +#load ksh external configs +for file in $KSHCONFIG/*.ksh; do + . "$file" +done +. $XDG_CONFIG_HOME/lf/lfcd.sh +[[ -f "$KSHCONFIG/diraliases" ]] && . "$KSHCONFIG/diraliases" +[[ -f "$XDG_CONFIG_HOME/aliasrc" ]] && . "$XDG_CONFIG_HOME/aliasrc" |