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

8
bashrc Normal file → Executable file
View File

@ -144,7 +144,13 @@ if [ -f ~/.bash_environment ]; then
source ~/.bash_environment source ~/.bash_environment
fi 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). # 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 #export EDITOR=nano

7
zshrc Normal file → Executable file
View File

@ -71,7 +71,12 @@ if [ -f ~/.zshenv ]; then
source ~/.zshenv source ~/.zshenv
fi 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). # 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 #export EDITOR=nano