diff options
Diffstat (limited to 'config/ksh/kshrc')
-rw-r--r-- | config/ksh/kshrc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config/ksh/kshrc b/config/ksh/kshrc index bd8f48b..36350d0 100644 --- a/config/ksh/kshrc +++ b/config/ksh/kshrc @@ -7,9 +7,15 @@ fi FPATH=$XDG_CONFIG_HOME/ksh/functions HISTFILE=$XDG_DATA_HOME/ksh/histfile +if ! [[ -d $HISTFILE ]]; then + mkdir -p $HISTFILE; +fi HISTSIZE=5000 HISTCONTROL="ignoredups" TMPDIR=$XDG_CACHE_HOME/ksh +if ! [[ -d $TMPDIR ]]; then + mkdir -p $TMPDIR; +fi # shortcut for cloning GITHUB="https://github.com" # make pfetch show what i want @@ -24,7 +30,7 @@ fi set -o vi #load ksh external configs -. $XDG_CONFIG_HOME/lf/lfcd.sh +[[ -f "$XDG_CONFIG_HOME/lf/lfcd.sh" ]] && . "$XDG_CONFIG_HOME/lf/lfcd.sh" [[ -f "$KSHCONFIG/diraliases" ]] && . "$KSHCONFIG/diraliases" [[ -f "$XDG_CONFIG_HOME/aliasrc" ]] && . "$XDG_CONFIG_HOME/aliasrc" [[ -f "$KSHCONFIG/completions.ksh" ]] && . "$KSHCONFIG/completions.ksh" |