Skip to content

Instantly share code, notes, and snippets.

@pwenzel
Created December 21, 2012 20:53
Show Gist options
  • Save pwenzel/4355739 to your computer and use it in GitHub Desktop.
Save pwenzel/4355739 to your computer and use it in GitHub Desktop.
Set terminal colour based on local or remote session
# This sets the highlight colour based upon whether you're remote or local.
export PS1="\[${HC}\033]0;\u@\h: \w\[\007\]\[${cyan}\]\u\[${HC}\]@\h: \w \[${cyan}\]\$ \[${NC}\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment