mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 13:21:19 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			462 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			462 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/usr/bin/env zsh
 | 
						|
 | 
						|
# common grc.zsh paths
 | 
						|
files=(
 | 
						|
  /etc/grc.zsh               # default
 | 
						|
  /usr/local/etc/grc.zsh     # homebrew darwin-x64
 | 
						|
  /opt/homebrew/etc/grc.zsh  # homebrew darwin-arm64
 | 
						|
  /home/linuxbrew/.linuxbrew/etc/grc.zsh # linuxbrew 
 | 
						|
  /usr/share/grc/grc.zsh     # Gentoo Linux (app-misc/grc)
 | 
						|
)
 | 
						|
 | 
						|
# verify the file is readable and source it
 | 
						|
for file in $files; do
 | 
						|
  if [[ -r "$file" ]]; then
 | 
						|
    source "$file"
 | 
						|
    break
 | 
						|
  fi
 | 
						|
done
 | 
						|
 | 
						|
unset file files
 |