A quick post showing how to set prompt and ls colours in Linux and OSX.

The file that is edited depends on the operating system: in Linux, it is ~/.bashrc, in OSX it is ~/.bash_profile

In Linux: ~/.bashrc

In Linux the file that controls you terminal colours is ~/.bashrc.

Also, note that it is LS_COLORS instead of LSCOLORS, and that the encoding scheme is different. Two great resources are this link and this online tool.

# colours of prompt
export PS1='\[\e[1;38;5;010m\]\u \w\[\e[0;38;5;45m\] \$\[\e[0m\]  '
# colours of ls command 
export CLICOLOR=1
export LS_COLORS="di=1;36:ln=1;31:so=37:pi=1;35:ex=37:bd=37:cd=37:su=37:sg=37:tw=1;36:ow=1;36"
# force colours for ls
alias ls='ls --color=auto'
# force 25 colours for tmux
alias tmux='tmux -2'

Note: this seems to be a bit tempermental on KDE.

To increase key repeat speed

Check out this article for OSX.