on Custom shell prompt tips and tricks? · c/linux · 4 pts · 2yCheck 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.
on Machine Learning books recommendations? · c/machinelearning · 4 pts · 3yESL by Hastie and Tibshirani https://hastie.su.domains/ElemStatLearn/
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.Trim it!
ESL by Hastie and Tibshirani https://hastie.su.domains/ElemStatLearn/