Use vivid if available to manage LS_COLORS
This commit is contained in:
		
							parent
							
								
									8074f6f26b
								
							
						
					
					
						commit
						c1c64a82b5
					
				
							
								
								
									
										9
									
								
								zshrc
								
								
								
								
							
							
						
						
									
										9
									
								
								zshrc
								
								
								
								
							|  | @ -1683,7 +1683,12 @@ case $TERM in | ||||||
| esac | esac | ||||||
| 
 | 
 | ||||||
| # Gestion de la couleur pour 'ls' (exportation de LS_COLORS) | # Gestion de la couleur pour 'ls' (exportation de LS_COLORS) | ||||||
| if [ -x /usr/bin/dircolors ] | # First, use vivid {{{ | ||||||
|  | if [ $(command -v vivid) ]; then | ||||||
|  | 	export LS_COLORS="$(vivid generate dracula)" | ||||||
|  | # }}} | ||||||
|  | # Second, use dircolors {{{ | ||||||
|  | elif [ -x /usr/bin/dircolors ] | ||||||
| then | then | ||||||
|   if [ -r ~/.dir_colors ] |   if [ -r ~/.dir_colors ] | ||||||
|   then |   then | ||||||
|  | @ -1695,7 +1700,7 @@ then | ||||||
|     eval "`dircolors`" |     eval "`dircolors`" | ||||||
|   fi |   fi | ||||||
| fi | fi | ||||||
| 
 | # }}} | ||||||
| 
 | 
 | ||||||
| ####################################### | ####################################### | ||||||
| # 3. Comportement ligne de commandes  # | # 3. Comportement ligne de commandes  # | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue