minus-squarenfultz@lemmy.mltoLinux@lemmy.ml•Custom shell prompt tips and tricks?linkfedilinkarrow-up4·1 year agoCheck 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. linkfedilink
minus-squarenfultz@lemmy.mltoStatistics@lemmy.ml•[Meme] Descriptive StatisticslinkfedilinkEnglisharrow-up1·1 year agoTrim it! linkfedilink
minus-squarenfultz@lemmy.mltoMachine Learning@lemmy.ml•Machine Learning books recommendations?linkfedilinkEnglisharrow-up4·1 year agoESL by Hastie and Tibshirani https://hastie.su.domains/ElemStatLearn/ linkfedilink
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.