home · contact · privacy
Export vim as default shell editor.
[config] / dotfiles_root / bashrc
1 # plomlompom's bashrc for non-login shells (root)
2
3 # Fancy colors for ls.
4 alias ls="ls --color=auto"
5
6 # Use vim as default editor for anything.
7 export VISUAL=vim
8 export EDITOR=$VISUAL
9
10 # Red prompt with time.
11 PS1="\[\e[1;31m\][\\t \\u@\\h \\w]$\[\e[m\] "
12 PS2="\[\e[1;31m\]>\[\e[m\] "
13 PS3="\[\e[1;31m\]>\[\e[m\] "
14 PS4="\[\e[1;31m\]+\[\e[m\] "