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=”[3[0;35m]u@h:w$ ”

PS1=”[3[1;35m]u@[3[1;36m]h:[3[1;32m]w[3[1;37m]$ ”

End the line with [3[0m] to make it a black background again

Save your new lines to the bashrc file as: PS1=”[3[1;35m]u@[3[1;36m]h:[3[1;32m]w[3[1;37m]$ ”

export PS1

http://ezprompt.net/

Source: Security news

Tags: