Linux Terminal 201: Customize The Shell Prompt - HakTip 148

Today on HakTip, we're customizing our shell prompt!

Today on HakTip, we're customizing our shell prompt!

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\]\u@\h:\w$ "

PS1="\[\033[1;35m\]\u@\[\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\]\u@\[\033[1;36m\]\h:\[\033[1;32m\]\w\[\033[1;37m\]$ "

export PS1

http://ezprompt.net/