Shift lots of shells' history into XDG_DATA_HOME

This commit is contained in:
Danielle McLean 2022-07-12 11:04:56 +10:00
parent efb24fc3f6
commit 3eec157285
Signed by: 00dani
GPG key ID: 52C059C3B22A753E

View file

@ -13,6 +13,13 @@ newbins+=($XDG_DATA_HOME/go/bin)
newbins+=(~/.cabal/bin ~/Library/Haskell/bin)
export STACK_ROOT=$XDG_DATA_HOME/stack
# less
# not exactly a 'lang' but still
export LESSHISTFILE=$XDG_DATA_HOME/less/history
# mysql
export MYSQL_HISTFILE=$XDG_DATA_HOME/mysql/history
# o'caml
export OPAMROOT=$XDG_DATA_HOME/opam
[[ -f $OPAMROOT/opam-init/init.zsh ]] && source $OPAMROOT/opam-init/init.zsh
@ -51,6 +58,9 @@ export PHIVE_HOME=$XDG_DATA_HOME/phive
# there you go, I guess.
newbins+=($XDG_CONFIG_HOME/composer/vendor/bin)
# postgres
export PSQL_HISTORY=$XDG_DATA_HOME/psql/history
# python
export -UT PYTHONPATH pythonpath
newbins+=(~/Library/Python/*/bin(N))
@ -60,4 +70,10 @@ export PYENV_ROOT=$XDG_DATA_HOME/pyenv
export PYENV_SHELL=zsh
newbins+=($XDG_DATA_HOME/pyenv/shims $HOME/.poetry/bin)
# redis
export REDISCLI_HISTFILE=$XDG_DATA_HOME/redis/rediscli_history
# sqlite
export SQLITE_HISTORY=$XDG_DATA_HOME/sqlite/history
path=($newbins $path)