.profile: Make prefix nicer
This commit is contained in:
		
							
								
								
									
										4
									
								
								.profile
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								.profile
									
									
									
									
									
								
							@@ -176,10 +176,10 @@ _ps1() {
 | 
			
		||||
	# Yes, shellcheck. I get it. That's what the or is for
 | 
			
		||||
	#shellcheck disable=2039
 | 
			
		||||
	if [ "$HOSTNAME" = "phys-saltshaker" ] || [ "$(hostname)" = "phys-saltshaker" ]; then
 | 
			
		||||
		prefix="${fg_bold}${fg_yellow}ss${r}"
 | 
			
		||||
		prefix="${fg_bold}${fg_grey}ss${r}${fg_grey}:${r}"
 | 
			
		||||
	fi
 | 
			
		||||
	if [ "$SSH_CLIENT" ]; then
 | 
			
		||||
		prefix="${fg_bold}${fg_red}$(hostname)${r}${fg_red}:${prefix}"
 | 
			
		||||
		prefix="${fg_bold}${fg_red}$(hostname)${r}${fg_red}:${r}${prefix}"
 | 
			
		||||
	fi
 | 
			
		||||
	# Append a "restricted" prefix in rbash
 | 
			
		||||
	if [ "$0" = "rbash" ]; then
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user