Skip to content

Instantly share code, notes, and snippets.

@kzisme
Created April 25, 2016 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kzisme/08d8def5f20e8b27c88ba5a2998ebc85 to your computer and use it in GitHub Desktop.
Save kzisme/08d8def5f20e8b27c88ba5a2998ebc85 to your computer and use it in GitHub Desktop.
if [ "$HOSTNAME" != Godric ]
1 then
2 # Settings for Gala
3 export PS1="[\[$(tput sgr0)\]\[\033[38;5;1m\]\u\[$(tput
4 2 sgr0)\]\[\033[38;5;11m\]@\[$(tput sgr0)\]\[\033[38;5;57m\]\h\[$(tput sgr0)\]\[\033[38;5;46m\]\w\[$(tput sgr0)\]\[\033[38;5;11m\]\\$\[$(tput sgr0)\]\[\033[38;5;15m\]] \[$(tput sgr0)\]"
5 echo "This works for non-Godric"
6 else
7 # Settings for Godric
8 export PS1="[\[$(tput sgr0)\]\[\033[38;5;10m\]\u\[$(tput sgr0)\]\[\033[38;5;11m\]@\[$(tput sgr0)\]\[\033[38;5;1m\]\h\[$(tput sgr0)\]\[\033[38;5;46m\]\w\[$(tput sgr0)\]\[\033[38; 5;11m\]\\$\[$(tput sgr0)\]\[\033[38;5;15m\]] \[$(tput sgr0)\]"
9 echo "This works for Godric"
10 fi
@ntietz
Copy link

ntietz commented Apr 25, 2016

export PS1="[\[$(tput sgr0)\]\[\033[38;5;1m\]\u\[$(tput 2 sgr0)\]\[\033[38;5;11m\]@\[$(tput sgr0)\]\[\033[38;5;57m\]\h\[$(tput sgr0)\]\[\033[38;5;46m\]\w\[$(tput sgr0)\]\[\033[38;5;11m\]\\$\[$(tput sgr0)\]\[\033[38;5;15m\]]            \[$(tput     sgr0)\]"

or

export PS1="[\[$(tput sgr0)\]\[\033[38;5;1m\]\u\[$(tput \
    2 sgr0)\]\[\033[38;5;11m\]@\[$(tput sgr0)\]\[\033[38;5;57m\]\h\[$(tput sgr0)\]\[\033[38;5;46m\]\w\[$(tput sgr0)\]\[\033[38;5;11m\]\\$\[$(tput sgr0)\]\[\033[38;5;15m\]]            \[$(tput     sgr0)\]"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment