Files
sl-base/CONFIG/etc/bashrc

19 lines
364 B
Bash

# Setup for /bin/ls and /bin/grep to support color
if [ -f "/etc/dircolors" ] ; then
eval $(dircolors -b /etc/dircolors)
fi
if [ -f "$HOME/.dircolors" ] ; then
eval $(dircolors -b $HOME/.dircolors)
fi
# Prompt
if [ "`id -u`" -eq 0 ]; then
export PS1='\u@\h:\w# '
else
export PS1='\u@\h:\w$ '
fi
alias ls='ls --color=auto'
alias grep='grep --color=auto'