Move the history file to the data dir
This commit is contained in:
parent
71b5995121
commit
4284406640
2 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
# create the missing directories
|
# create the missing directories
|
||||||
|
[ ! -d "$HISTFILE_DIR" ] && mkdir -p "$HISTFILE_DIR"
|
||||||
[ ! -d "$COMPDIR" ] && mkdir -p "$COMPDIR"
|
[ ! -d "$COMPDIR" ] && mkdir -p "$COMPDIR"
|
||||||
|
|
||||||
# transmission
|
# transmission
|
||||||
|
|
3
.zshenv
3
.zshenv
|
@ -2,7 +2,8 @@
|
||||||
export ZDOTDIR="$HOME/.config/zsh"
|
export ZDOTDIR="$HOME/.config/zsh"
|
||||||
|
|
||||||
# History
|
# History
|
||||||
export HISTFILE="$HOME/.config/zsh/.zsh_history"
|
export HISTFILE_DIR="$HOME/.local/share/zsh/.zsh_history"
|
||||||
|
export HISTFILE="$HISTFILE_DIR/.zsh_history"
|
||||||
export HISTSIZE=5000
|
export HISTSIZE=5000
|
||||||
export SAVEHIST=100000
|
export SAVEHIST=100000
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue