Move file cleanup lines

This commit is contained in:
ItsDrike 2021-07-14 14:45:25 +02:00
parent d5b5efcd5f
commit f90b7bc9de
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD

View file

@ -15,6 +15,10 @@ setopt numericglobsort # sort filenames numerically when it makes sense
export ZSH_CACHE="$HOME/.cache/zsh" export ZSH_CACHE="$HOME/.cache/zsh"
export ZSH_COMPDUMP="$ZSH_CACHE/zcompdump-$ZSH_VERSION" # for auto/tab completion 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 # History configuration
HISTFILE="$ZSH_CACHE/history" HISTFILE="$ZSH_CACHE/history"
HISTSIZE=10000 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 hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTFILE
#setopt share_history # share command history data between terminals #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) # oh-my-zsh configuration (DISABLED by default, if you want oh-my-zsh, uncomment these)
#export ZSH="/usr/share/oh-my-zsh" #export ZSH="/usr/share/oh-my-zsh"
#ZSH_THEME="af-magic" #ZSH_THEME="af-magic"