Fix HISTFILE bootstrap

This commit is contained in:
xeruf 2021-12-02 23:37:54 +01:00
parent 239f0c60ae
commit f907128446
2 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,6 @@ test "$hasService" && sudo service rsyslog restart || sudo systemctl restart rsy
test "$hasService" && sudo service cron reload || sudo systemctl reload cronie test "$hasService" && sudo service cron reload || sudo systemctl reload cronie
highlight "Zsh" highlight "Zsh"
mkdir -p $XDG_STATE_HOME
test -n "$ZSH" || export ZSH="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/oh-my-zsh" test -n "$ZSH" || export ZSH="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/oh-my-zsh"
cloneshallow() { cloneshallow() {
url=https://github.com/$2/$1.git url=https://github.com/$2/$1.git

View File

@ -58,6 +58,7 @@ export ZSH="$XDG_DATA_HOME/zsh/oh-my-zsh"
export HISTFILE="$XDG_STATE_HOME/zsh/history" export HISTFILE="$XDG_STATE_HOME/zsh/history"
export CONFIG_ZSH="$XDG_CONFIG_HOME/zsh" export CONFIG_ZSH="$XDG_CONFIG_HOME/zsh"
export CONFIG_SHELLS="$XDG_CONFIG_HOME/shell" export CONFIG_SHELLS="$XDG_CONFIG_HOME/shell"
mkdir -p $XDG_STATE_HOME/zsh
# environment # environment
which nvim >/dev/null && export EDITOR='nvim' || export EDITOR='vim' which nvim >/dev/null && export EDITOR='nvim' || export EDITOR='vim'