mirror of
				https://github.com/ItsDrike/dotfiles.git
				synced 2025-11-04 01:16:35 +00:00 
			
		
		
		
	Update zshrc
This commit is contained in:
		
							parent
							
								
									0efe33b80d
								
							
						
					
					
						commit
						5e0fcc415b
					
				
					 1 changed files with 16 additions and 15 deletions
				
			
		| 
						 | 
				
			
			@ -11,16 +11,24 @@ setopt notify               # report the status of background jobs immediately
 | 
			
		|||
setopt numericglobsort      # sort filenames numerically when it makes sense
 | 
			
		||||
#setopt correct_all         # autocorrect commands
 | 
			
		||||
 | 
			
		||||
# 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"
 | 
			
		||||
#UPDATE_ZSH_DAYS=8
 | 
			
		||||
#ENABLE_CORRECTION="false"
 | 
			
		||||
#source $ZSH/oh-my-zsh.sh # Run oh-my-zsh
 | 
			
		||||
 | 
			
		||||
# ZSH files cleanup
 | 
			
		||||
export ZSH_CACHE="$HOME/.cache/zsh"
 | 
			
		||||
export ZSH_COMPDUMP="$ZSH_CACHE/zcompdump-$ZSH_VERSION" # for auto/tab completion
 | 
			
		||||
HISTFILE="$ZSH_CACHE/history"
 | 
			
		||||
export ZSH_COMPDUMP="$ZSH_CACHE/zcompdump-$ZSH_VERSION"
 | 
			
		||||
 | 
			
		||||
# Auto-remove home clutter
 | 
			
		||||
[ -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
 | 
			
		||||
SAVEHIST=10000
 | 
			
		||||
setopt appendhistory			# save history entries as soon as they are entered
 | 
			
		||||
| 
						 | 
				
			
			@ -30,21 +38,14 @@ 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
 | 
			
		||||
 | 
			
		||||
# 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"
 | 
			
		||||
#UPDATE_ZSH_DAYS=8
 | 
			
		||||
#ENABLE_CORRECTION="false"
 | 
			
		||||
#source $ZSH/oh-my-zsh.sh # Run oh-my-zsh
 | 
			
		||||
 | 
			
		||||
# Completion features (tab)
 | 
			
		||||
autoload -Uz compinit
 | 
			
		||||
zmodload -i zsh/complist
 | 
			
		||||
compinit -d $ZSH_COMPDUMP
 | 
			
		||||
comp_options+=(globdots)
 | 
			
		||||
zstyle ':completion:*' menu select   # select completions with arrow keys
 | 
			
		||||
zstyle ':completion:*' group-name '' # group results by category
 | 
			
		||||
zstyle ':completion:::::' completer _expand _complete _ignored _approximate #enable approximate matches for completio
 | 
			
		||||
zmodload -i zsh/complist                # load completion list
 | 
			
		||||
compinit -d $ZSH_COMPDUMP               # Specify compdump file
 | 
			
		||||
comp_options+=(globdots)                # Enable completion on hidden files.
 | 
			
		||||
zstyle ':completion:*' menu select      # select completions with arrow keys
 | 
			
		||||
zstyle ':completion:*' group-name ''    # group results by category
 | 
			
		||||
zstyle ':completion:::::' completer _expand _complete _ignored _approximate #enable approximate matches for completion
 | 
			
		||||
 | 
			
		||||
# Color support
 | 
			
		||||
#autoload -U colors && colors
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue