feat(zsh): move p10k to XDG
This commit is contained in:
		
							
								
								
									
										1622
									
								
								zsh/.p10k.zsh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1622
									
								
								zsh/.p10k.zsh
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										10
									
								
								zsh/.zshrc
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								zsh/.zshrc
									
									
									
									
									
								
							@@ -4,11 +4,11 @@ export XDG_CACHE_HOME="$HOME/.cache"
 | 
			
		||||
export XDG_DATA_HOME="$HOME/.local/share"
 | 
			
		||||
export XDG_STATE_HOME="$HOME/.local/state"
 | 
			
		||||
 | 
			
		||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
 | 
			
		||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.config/zsh/.zshrc.
 | 
			
		||||
# Initialization code that may require console input (password prompts, [y/n]
 | 
			
		||||
# confirmations, etc.) must go above this block; everything else may go below.
 | 
			
		||||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
 | 
			
		||||
   source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
 | 
			
		||||
  source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# zsh history file 
 | 
			
		||||
@@ -71,8 +71,8 @@ export EDITOR=nvim
 | 
			
		||||
source "$ZDOTDIR/aliases.zsh"
 | 
			
		||||
source "$ZDOTDIR/functions.zsh"
 | 
			
		||||
 | 
			
		||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
 | 
			
		||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
 | 
			
		||||
 | 
			
		||||
# opam configuration
 | 
			
		||||
[[ ! -r /Users/janezicmatej/.opam/opam-init/init.zsh ]] || source /Users/janezicmatej/.opam/opam-init/init.zsh  > /dev/null 2> /dev/null
 | 
			
		||||
 | 
			
		||||
# To customize prompt, run `p10k configure` or edit ~/.config/zsh/.p10k.zsh.
 | 
			
		||||
[[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user