From 16427e3cc9bac474733ddedb7f601c6ebba7f219 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Thu, 29 Dec 2011 11:18:28 +0200 Subject: [PATCH] zshrc & bashrc: Add colours if $TERM is xterm. --- .gitignore | 0 README | 0 bashrc | 8 +++++++- zshrc | 7 ++++++- 4 files changed, 13 insertions(+), 2 deletions(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 README mode change 100644 => 100755 bashrc mode change 100644 => 100755 zshrc diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/README b/README old mode 100644 new mode 100755 diff --git a/bashrc b/bashrc old mode 100644 new mode 100755 index 816cf791..8dc56ee0 --- a/bashrc +++ b/bashrc @@ -144,7 +144,13 @@ if [ -f ~/.bash_environment ]; then source ~/.bash_environment fi -# Things after this are just examples and should be put to some other file, which issourced above. +# More colours :D +if [[ $TERM == 'xterm' ]]; then +export TERM=xterm-256color +fi + + +# Things after this are just examples and should be put to some other file, which is sourced above. # Sets the default editor. I prefer nano to vim and so on, so I want it to be nano. If you don't like terminal based text editors, change "nano" to gedit (Gnome) or Kate (KDE). #export EDITOR=nano diff --git a/zshrc b/zshrc old mode 100644 new mode 100755 index b523d3b0..7a315fd7 --- a/zshrc +++ b/zshrc @@ -71,7 +71,12 @@ if [ -f ~/.zshenv ]; then source ~/.zshenv fi -# Things after this are just examples and should be put to some other file, which issourced above. +#More colours :D +if [[ $TERM == 'xterm' ]]; then +export TERM=xterm-256color +fi + +# Things after this are just examples and should be put to some other file, which is sourced above. # Sets the default editor. I prefer nano to vim and so on, so I want it to be nano. If you don't like terminal based text editors, change "nano" to gedit (Gnome) or Kate (KDE). #export EDITOR=nano