Just a quick post on customizing the Linux Shell. My host is in CST and I wanted to change my timezone to EST.
After some research, I found that we can make changes to the
.bashrc file to set certain environmental
settings. I also found out I could change a few other things besides the timezone, such as the default editor, colors and so on
Let take a quick look!
Below are the contents of my
# User specific aliases and functions
# Set the TimeZone to EST
# Set nano as the default editor
# Change the interface
PS1='\T - [\e[1;33m\]\w\[\e[m\]] \[\e[1;32m\]\$\[\e[m\]: '
Here’s a quick look at what my shell looks like now:
Yes, super exciting 😛 There’s a lot that can be changed here, so play around with these settings and see what you can come up with.
For some information on BASH colours, please see http://www.cyberciti.biz/faq/bash-shell-change-the-color-of-my-shell-prompt-under-linux-or-unix/