From 9bb94cbe9ac7d4cce55dd205207db22c6abe6aef Mon Sep 17 00:00:00 2001 From: tomit4 Date: Wed, 15 Jun 2022 14:45:37 -0700 Subject: [PATCH] finished up zsh startup script that clears history completely --- zshrc.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zshrc.txt b/zshrc.txt index 286065e6..6d6d964b 100644 --- a/zshrc.txt +++ b/zshrc.txt @@ -40,7 +40,7 @@ setopt HIST_VERIFY # Don't execute immediately upon history expans # setopt HIST_BEEP # Beep when accessing nonexistent history. # creates a .zsh_history file on startup, and clears the history -touch $HISTFILE && cat /dev/null > $HISTFILE && history -p +echo '' | xclip && xclip -selection clipboard /dev/null && history -p && hash -r && /usr/bin/rm $HOME/.zsh_history && touch $HOME/.zsh_history # Configure thefuck eval "$(thefuck --alias)" @@ -150,7 +150,8 @@ bindkey -v # kitty-integration # unfunction kitty-integration # fi -alias home="xclear && cd /home/brian && clear && history -p && hash -r" +alias home="xclear && cd /home/brian && clear && history -p && hash -r && /usr/bin/rm $HOME/.zsh_history && touch $HOME/.zsh_history" + source ~/.aliases # Plugins (that need to be at the end of the zshrc script) source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh