commit 594e260901444c4ff960108e2d65b4670b6dc4fe
parent 8a548e68092096d1a7772bf64cd26c90466246e0
Author: jacob@thinkpad <jacobouno@protonmail.com>
Date: Sat, 27 Jun 2020 15:05:27 -0700
Move shell history to .local/var/$SHELL/
absolute value used for shell instead of $0 because tmux $0 with '-'
Diffstat:
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ksh/.kshrc b/ksh/.kshrc
@@ -5,6 +5,7 @@
. ~/.profile
. ~/.aliases
+export HISTFILE="$HISTBASE/ksh/history"
export HISTSIZE="820000"
set -o vi
diff --git a/mksh/.mkshrc b/mksh/.mkshrc
@@ -5,7 +5,7 @@ source ~/.profile
source ~/.aliases
# history
-#export HISTFILE="$HOME/.mksh-hist"
+export HISTFILE="$HISTBASE/mksh/history"
export HISTSIZE='820000'
diff --git a/profile/.profile b/profile/.profile
@@ -19,9 +19,9 @@ export COMPOSITOR=picom
export PAGER=less
export LESS="M r S W x2 ~ q i b80 h15 z23 j5"
export LOCKER=slock
-export HISTFILE="$HOME/.hist-$0"
export HTTP_PROXY="socks://localhost:9050"
export CARGO_HOME="$HOME/.local/lib/cargo"
+export HISTBASE="$HOME/.local/var"
export WALLPAPERS="$HOME/image/wallpapers"
export SCREENSHOTS="$HOME/own/image/screenshots"