my minimum dot bashrc file

Here is one of the few minimum configurations I like to have on my personal .bashrc file

export PS1="\[\033[0;36m\]{\[\033[0;50m\]\w/\[\033[0;36m\]} \[\033[0;32m\]what now... \[\033[0;39m\]"

Ok, mac doesn’t have a proper root user, but I often run 2 virtual machines at the same times and one of them is an ubuntu server. Especially when I am into some installation process, I need to swap between root and normal user quite often. A quick and simple way to differenciate the root user is:

export PS1="\[\033[1;31m\]\u\[\033[0;0m\]@\h "

And this will write root in red.

And the minimal .bashrc/.profile configuration continues with:

# sets the title of your terminal window correctly
export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'

# set 'ls' to output in long list mode with hunam readable size units
# 'h' can be also replaced by 'a'
alias ll='ls -lh'

# makes C-l (and other things which must know about the terminal type)
# always work
export TERM=xterm

Another PS1 configuration I use is

#sets a minmal, useful prompt
export PS1="\u@\h \w$ "