Created
April 25, 2016 15:36
-
-
Save kzisme/08d8def5f20e8b27c88ba5a2998ebc85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
or