diff --git a/.zshrc b/.zshrc index 6fdb6f6..8328980 100644 --- a/.zshrc +++ b/.zshrc @@ -5,8 +5,12 @@ esac [ -f "$HOME/.ghcup/env" ] && . "$HOME/.ghcup/env" +export HISTFILE="$XDG_STATE_HOME/zsh/history" + +export HISTSIZE=100000 +export HISTFILESIZE="$HISTSIZE" + setopt EXTENDED_HISTORY -setopt INC_APPEND_HISTORY setopt SHARE_HISTORY setopt HIST_EXPIRE_DUPS_FIRST setopt HIST_SAVE_NO_DUPS @@ -14,9 +18,6 @@ setopt HIST_VERIFY setopt APPEND_HISTORY setopt HIST_NO_STORE -HISTFILESIZE=100000 -HISTCONTROL="ignoredups" - alias v='nvim' alias vim='nvim' @@ -34,11 +35,7 @@ alias wget="wget --hsts-file='$XDG_DATA_HOME/wget-hsts'" alias ipp='curl https://ipinfo.io/ip && echo' alias ipl='monitors local_ip' -skli() { - [ -f config.h ] && rm config.h - make || return - doas make install -} +## Initialization ## PROMPT=$'%{\e[1;32m%}%n@%M%{\e[1;34m%} %~ %%%{\e[0m%} '