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
6
bashrc
Normal file → Executable file
6
bashrc
Normal file → Executable 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
5
zshrc
Normal file → Executable 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).
|
||||||
|
Loading…
Reference in New Issue
Block a user