Skip to content

Instantly share code, notes, and snippets.

@elebertus
Created July 17, 2012 10:24
Show Gist options
  • Save elebertus/3128599 to your computer and use it in GitHub Desktop.
Save elebertus/3128599 to your computer and use it in GitHub Desktop.
function prompt {
local bc="\[\e[0m\]"
local ob="\[\e[1;31m\][\]"
local cb="\[\e[1;31m\]]\]"
local spc="\[\e[0;32m\]"
local host="\[\e[30;34m\]\u@\h\]"
local lwd="\[\e[30;34m\]\w\]"
export PS1="$ob"$bc"$host"$bc"$cb"$bc"$spc:$ob"$bc"$lwd"$bc"$cb"$bc""$spc"$"$bc" "
}
prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment