Вот такой у меня .bashrc у непривилегированного пользователя
# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -r /etc/bashrc ]; then
. /etc/bashrc
fi
export PATH="/home/$USER/bin:/usr/libexec/lightdm:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/X11R6/bin:/sbin:/usr/sbin";
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# Цветной вывод ls с обозначениями файлов и каталогов
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls -CF --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
fi
alias ll='ls -lh'
alias la='ls -lah'
alias l='ls -CF'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
export GREP_OPTIONS="--color=auto"
alias ping='ping -c5'
# Красим приглашение
if [ $(whoami) != "root" ]; then
PS1="\[\033[33;1m\]\u\[\033[34m\]@\[\033[33;1m\]\h:\[\033[34m\]\w/$ \[\033[32m\]"
else
PS1="\[\033[33;1m\]\u\[\033[34m\]@\[\033[33;1m\]\h:\[\033[31m\]\w/# \[\033[32m\]"
fi
PS2="\[\e[35m\]> \[\e[32m\]"
# Красим man
export LESS_TERMCAP_mb=$'\033[01;31m'
export LESS_TERMCAP_md=$'\033[01;31m'
export LESS_TERMCAP_me=$'\033[0m'
export LESS_TERMCAP_se=$'\033[0m'
export LESS_TERMCAP_so=$'\033[01;44;33m'
export LESS_TERMCAP_ue=$'\033[0m'
export LESS_TERMCAP_us=$'\033[01;32m'
Однако, расцветка вывода консоли для чёрного фона!
С другим фоном может выглядеть ужасно.