.profile: If we're not salt, alert us
This commit is contained in:
		
							
								
								
									
										2
									
								
								.profile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								.profile
									
									
									
									
									
								
							@@ -335,6 +335,8 @@ _ps1bash() {
 | 
				
			|||||||
	# Alert if in an SSH session
 | 
						# Alert if in an SSH session
 | 
				
			||||||
	if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
 | 
						if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
 | 
				
			||||||
		prefix="${fg_bold}${fg_red}$(hostname -s)${r}${fg_red}:${r}${prefix}"
 | 
							prefix="${fg_bold}${fg_red}$(hostname -s)${r}${fg_red}:${r}${prefix}"
 | 
				
			||||||
 | 
						elif [ "$USER" != "salt" ]; then
 | 
				
			||||||
 | 
							prefix="${fg_bold}${fg_yellow}$USERNAME${r}${fg_yellow}:${r}${prefix}"
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
	# Change PWD color depending on the shell
 | 
						# Change PWD color depending on the shell
 | 
				
			||||||
	case $0 in
 | 
						case $0 in
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user