Timezone and .bashrc

Changing the timezone on a Linux system and setting console colors with the echo command.

Changing Linux instances to a local time-zone from UTC. I found the easiest way thanks to ajtrichards.

sudo m /etc/localtime
sudo ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime

For the local machine, to have a calculator in the command line, and the Zen Burn color scheme, and a title for the terminal window, this works as a good .bashrc.

 # .bashrc
 # Source global definitions
 if [ -f /etc/bashrc ]; then
 . /etc/bashrc
 fi
 # Uncomment the following line if you don't like systemctl's auto-paging feature:
 # export SYSTEMD_PAGER=
 # User specific aliases and functions
 calc () { echo "$*" | bc -l; }
 PROMPT_COMMAND='echo -ne "\033]0;Fedora 25: ${PWD}\007"'
 # Zen Burn color Scheme
 # Thanks to https://github.com/sonatard/color-theme-zenburn
 echo -ne '\e]12;#BFBFBF\a'
 echo -ne '\e]10;#DCDCCC\a'
 echo -ne '\e]11;#3F3F3F\a'
 echo -ne '\e]4;0;#3F3F3F\a'
 echo -ne '\e]4;1;#705050\a'
 echo -ne '\e]4;2;#60B48A\a'
 echo -ne '\e]4;3;#DFAF8F\a'
 echo -ne '\e]4;4;#506070\a'
 echo -ne '\e]4;5;#DC8CC3\a'
 echo -ne '\e]4;6;#8CD0D3\a'
 echo -ne '\e]4;7;#DCDCCC\a'
 echo -ne '\e]4;8;#709080\a'
 echo -ne '\e]4;9;#DCA3A3\a'
 echo -ne '\e]4;10;#C3BF9F\a'
 echo -ne '\e]4;11;#F0DFAF\a'
 echo -ne '\e]4;12;#94BFF3\a'
 echo -ne '\e]4;13;#EC93D3\a'

Leave a Reply