Skip to content

Instantly share code, notes, and snippets.

# .bashrc
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
[ -z "$PS1" ] && return
# http://en.tldp.org/HOWTO/Bash-Prompt-HOWTO/x869.html
function prompt_command {
hostnam=$(hostname -s)
usernam=$(whoami)