URI:
       ksh: finish cleanup - dotfiles - 🍚 personal arsenal of "rice"
  HTML git clone https://git.drkhsh.at/dotfiles.git
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit dedce4f1effb3bb6717bd5ce6842c8ddf7f60e2c
   DIR parent 2ec6365dbb426029067ef502200bb6f05a4119f2
  HTML Author: drkhsh <me@drkhsh.at>
       Date:   Sat,  7 Sep 2024 01:30:43 +0200
       
       ksh: finish cleanup
       
       Diffstat:
         M ksh/.config/ksh/kshrc               |       9 +++++----
       
       1 file changed, 5 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/ksh/.config/ksh/kshrc b/ksh/.config/ksh/kshrc
       @@ -12,7 +12,8 @@ _exists() {
        }
        
        # history
       -HISTFILE=$HOME/.ksh_history
       +test -d $HOME/.local/state/ksh || mkdir -p $HOME/.local/state/ksh
       +HISTFILE=$HOME/.local/state/ksh/history
        HISTCONTROL=ignoredups:ignorespace:erasedups
        HISTSIZE=10000
        
       @@ -83,15 +84,15 @@ export EDITOR VISUAL
        _exists cargo && export PATH=$PATH:/home/drkhsh/.cargo/bin
        
        # completions
       -[ -f ~/.ksh/completions.ksh ] && . ~/.ksh/completions.ksh
       +[ -f ~/.config/ksh/completions.ksh ] && . ~/.config/ksh/completions.ksh
        
        # prompt
        PS1='\]\u\[\]@\[\]\h\[\]\[\]:\[\]\w\[\]\$ '
        export PS1
        
        # machine-specific kshrc
       -if [ -e ~/.kshrc.local ]; then
       -        . ~/.kshrc.local
       +if [ -e ~/.config/ksh/kshrc.local ]; then
       +        . ~/.config/ksh/kshrc.local
        fi
        
        # undefine helpers