This profile is from a federated server and may be incomplete. Browse more on the original instance.
nfultz, 7 months ago to linux in Custom shell prompt tips and tricks? Check for the ssh env vars. For example, I use PS1=“${SSH_CONNECTION:+u@h:}W$” to hide the hostname when not on SSH, you could do something similar with the control codes for color.
Check for the ssh env vars. For example, I use PS1=“${SSH_CONNECTION:+u@h:}W$” to hide the hostname when not on SSH, you could do something similar with the control codes for color.
PS1=“${SSH_CONNECTION:+u@h:}W$”