mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-16 16:29:23 +01:00
zshrc & bashrc: Add colours if $TERM is xterm.
This commit is contained in:
parent
a30773bf1e
commit
16427e3cc9
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
8
bashrc
Normal file → Executable file
8
bashrc
Normal file → Executable file
@ -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
|
||||
|
7
zshrc
Normal file → Executable file
7
zshrc
Normal file → Executable file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user