feat: move over history settings from asahi branch

This commit is contained in:
vel 2023-06-17 16:47:19 -07:00
parent 41dd83a0c6
commit f1e7c5eded
Signed by: velvox
GPG Key ID: 1C8200C1D689CEF5
1 changed files with 17 additions and 1 deletions

View File

@ -8,7 +8,7 @@ export ZSH="$HOME/repos/ohmyzsh"
source ~/repos/zsh-snap/znap.zsh source ~/repos/zsh-snap/znap.zsh
# OMZ # OMZ
znap source ohmyzsh/ohmyzsh lib/{git,theme-and-appearance} #znap source ohmyzsh/ohmyzsh lib/{git,theme-and-appearance}
# Plugins # Plugins
znap source marlonrichert/zsh-autocomplete znap source marlonrichert/zsh-autocomplete
@ -29,5 +29,21 @@ alias cat="bat"
alias vim="nvim" alias vim="nvim"
alias vi="nvim" alias vi="nvim"
# ssh shit
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gcr/ssh
# history
export HISTFILE=~/.zsh_history
export HISTSIZE=1000000 # the number of items for the internal history list
export SAVEHIST=1000000 # maximum number of items for the history file
setopt HIST_IGNORE_ALL_DUPS # do not put duplicated command into history list
setopt HIST_SAVE_NO_DUPS # do not save duplicated command
setopt HIST_REDUCE_BLANKS # remove unnecessary blanks
setopt INC_APPEND_HISTORY_TIME # append command to history file immediately after execution
eval "$(zoxide init zsh --cmd cd)"
# remember to install starship # remember to install starship
eval "$(starship init zsh)" eval "$(starship init zsh)"