HakTip 148 – Linux Terminal 201: Customize The Shell Prompt
Today on HakTip, we’re customizing our shell prompt!
——————————-
Shop: http://www.hakshop.com
Support: http://www.patreon.com/threatwire
Subscribe: http://www.youtube.com/hak5
Our Site: http://www.hak5.org
Contact Us: http://www.twitter.com/hak5
Threat Wire RSS: https://shannonmorse.podbean.com/feed/
Threat Wire iTunes: https://itunes.apple.com/us/podcast/threat-wire/id1197048999
——————————
Subscribe to Hak5’s YouTube channel at http://www.youtube.com/hak5
Support Hak5 via our shop at https://www.hakshop.com
Commands I used on this episode include:
echo $PS1
original_backup=”$PS1″
PS1=
PS1=”\$”
PS1=”\[\033[0;35m\]\[email protected]\h:\w$ ”
PS1=”\[\033[1;35m\]\[email protected]\[\033[1;36m\]\h:\[\033[1;32m\]\w\[\033[1;37m\]$ ”
End the line with \[\033[0m\] to make it a black background again
Save your new lines to the bashrc file as: PS1=”\[\033[1;35m\]\[email protected]\[\033[1;36m\]\h:\[\033[1;32m\]\w\[\033[1;37m\]$ ”
export PS1