Move fixing .zsh_history to .zshenv.

This commit is contained in:
Bartek Stalewski 2024-11-06 22:48:12 +01:00
parent d8bb1b2333
commit 726fa04730
No known key found for this signature in database
2 changed files with 7 additions and 9 deletions

View file

@ -16,7 +16,6 @@ setopt HIST_SAVE_NO_DUPS
setopt HIST_REDUCE_BLANKS
setopt SHARE_HISTORY
setopt INC_APPEND_HISTORY
rm -rf "${ZDOTDIR}/.zsh_history" && ln -sf "${XDG_DATA_HOME}/zsh/history" "${ZDOTDIR}/.zsh_history"
# set path
path=(~/.local/bin "${path[@]}")
@ -42,9 +41,6 @@ if [[ $(command -v vivid) ]]; then
else
unset LS_COLORS
fi
# if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then
# eval "$(oh-my-posh --config "${XDG_CONFIG_HOME}/omp/omp.toml" init zsh)"
# fi
source "${ZDOTDIR}/p10k.zsh"
source ~/.local/git/zsh_modules/powerlevel10k/powerlevel10k.zsh-theme
if [[ -r "${XDG_CACHE_HOME}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then