From f90b7bc9de5eb3ee8197c4f776785127e1d8eb76 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Wed, 14 Jul 2021 14:45:25 +0200 Subject: [PATCH] Move file cleanup lines --- home/.zshrc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/home/.zshrc b/home/.zshrc index cd65402..6dc4050 100755 --- a/home/.zshrc +++ b/home/.zshrc @@ -15,6 +15,10 @@ setopt numericglobsort # sort filenames numerically when it makes sense export ZSH_CACHE="$HOME/.cache/zsh" export ZSH_COMPDUMP="$ZSH_CACHE/zcompdump-$ZSH_VERSION" # for auto/tab completion +[ -f ~/.zsh-update ] && mv ~/.zsh-update $ZSH_CACHE/.zsh-update +[ -f ~/.sudo_as_admin_sucessful ] && rm ~/.sudo_as_admin_successful +[ -f ~/.bash_history ] && rm ~/.bash_history + # History configuration HISTFILE="$ZSH_CACHE/history" HISTSIZE=10000 @@ -26,11 +30,6 @@ setopt hist_verify # show commands with history expansion to user b #setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTFILE #setopt share_history # share command history data between terminals -# Automatically move files to appropriate locations -[ -f ~/.zsh-update ] && mv ~/.zsh-update $ZSH_CACHE/.zsh-update -[ -f ~/.bash_history ] && mv ~/.bash_history $HISTFILE -[ -f ~/.sudo_as_admin_sucessful ] && rm ~/.sudo_as_admin_successful # Ubuntu makes this every with sudo usage - # oh-my-zsh configuration (DISABLED by default, if you want oh-my-zsh, uncomment these) #export ZSH="/usr/share/oh-my-zsh" #ZSH_THEME="af-magic"