added history settings

This commit is contained in:
Elmar Sönser 2021-12-09 08:04:46 +01:00
parent a254811e4b
commit b41de0429b

13
.zshrc
View file

@ -64,6 +64,16 @@ source ~/.dotfiles/zsh-settings/themes/powerlevel10k/powerlevel10k.zsh-theme
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
# Long history and no double entries, share history between all open sessions,
## Histfile is always loaded into ram, so to big might occupy a lot of ram
export HISTFILESIZE=100000 # max would be 1000000000
export HISTSIZE=100000 # max would be 1000000000
setopt SHARE_HISTORY # Share history between all sessions.
setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits.
setopt HIST_IGNORE_DUPS # Don't record an entry that was just recorded again.
setopt HIST_IGNORE_ALL_DUPS # Delete old recorded entry if new entry is a duplicate.
setopt HIST_VERIFY # Don't execute immediately upon history expansion.
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
ZSH_CUSTOM=~/.dotfiles/zsh-settings
@ -190,6 +200,9 @@ alias civplay="rm -f ~/.local/share/Steam/steamapps/common/Sid\ Meier\'s\ Civili
## sshuttle to ssh.geo (root all traffic but local and ssh.geo itself)
alias geossh="sshuttle --dns -r ssh -x 192.189.78.0/23 -x 192.168.178.0/23 -x 128.131.74.216 0/0"
alias geoes="sshuttle --dns -r es -x 192.189.78.0/23 -x 192.168.178.0/23 -x 128.131.74.216 -x 128.131.72.92 -x 128.131.72.55 0/0"
##Librewolf diff profiles
alias lwmain="librewolf -p main"
alias lwwiss="librewolf -p wiss"
#### Show OS Info on startup
#if [ -f /usr/bin/screenfetch ]; then screenfetch; fi