about summary refs log blame commit diff stats
path: root/config/ksh/kshrc
blob: abf9bf083390f06e65c172576741c276ba45fb8a (plain) (tree)





















                                                                   
#!/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"