You've already forked personal-linux-config
							
							
		
			
				
	
	
		
			17 lines
		
	
	
		
			581 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			581 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
command -v git &>/dev/null
 | 
						|
if [ $? -eq 0 ]; then
 | 
						|
  GIT_FUNCTIONS=true
 | 
						|
fi
 | 
						|
 | 
						|
# Spaced
 | 
						|
#PS1="${LIGHTBLUE}[ ${LIGHTRED}\u ${LIGHTBLUE}@ ${LIGHTBROWN}$(hostname --fqdn) ${LIGHTBLUE}] ${LIGHTPURPLE}( ${GREEN}\w ${LIGHTPURPLE}) "
 | 
						|
# Not spaced
 | 
						|
PS1="${LIGHTBLUE}[${LIGHTRED}\u${LIGHTBLUE}@${LIGHTBROWN}$(hostname --fqdn)${LIGHTBLUE}]${LIGHTPURPLE}(${GREEN}\w${LIGHTPURPLE})"
 | 
						|
 | 
						|
if [ $GIT_FUNCTIONS = "true" ]; then
 | 
						|
  #PS1="$PS1${LIGHTPURPLE}[${LIGHTCYAN}$(__git_prompt)${LIGHTPURPLE}]"
 | 
						|
  PS1="$PS1${LIGHTBROWN}(${LIGHTCYAN}\$(__git_prompt)${LIGHTBROWN}) "
 | 
						|
fi
 | 
						|
 | 
						|
PS1="$PS1${RED}#${FORMAT_RESET}"
 |