mirror of
				https://github.com/ItsDrike/dotfiles.git
				synced 2025-11-04 01:16:35 +00:00 
			
		
		
		
	Move file cleanup lines
This commit is contained in:
		
							parent
							
								
									d5b5efcd5f
								
							
						
					
					
						commit
						f90b7bc9de
					
				
					 1 changed files with 4 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -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"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue