zshrc & bashrc: Add colours if $TERM is xterm.

This commit is contained in:
nyuszika7h 2011-12-29 11:18:28 +02:00 committed by Mika Suomalainen
parent a30773bf1e
commit 16427e3cc9
4 changed files with 13 additions and 2 deletions

0
.gitignore vendored Normal file → Executable file
View File

0
README Normal file → Executable file
View File

6
bashrc Normal file → Executable file
View File

@ -144,6 +144,12 @@ if [ -f ~/.bash_environment ]; then
source ~/.bash_environment source ~/.bash_environment
fi fi
# 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. # 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). # 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).

5
zshrc Normal file → Executable file
View File

@ -71,6 +71,11 @@ if [ -f ~/.zshenv ]; then
source ~/.zshenv source ~/.zshenv
fi fi
#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. # 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). # 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).