Last active
September 15, 2020 17:03
-
-
Save arbal/81c1c314c3fcf86e646d33f05b7921b6 to your computer and use it in GitHub Desktop.
context-color.sh
This file contains hidden or 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
| wget -q -O ~/.local/bin/context-color https://raw.githubusercontent.com/ramnes/context-color/master/context-color && chmod a+x ~/.local/bin/context-color | |
| # Test | |
| echo | |
| echo "> context-color -d" | |
| context-color -d | |
| echo | |
| echo "> context-color -pd" | |
| context-color -pd | |
| # Usage | |
| echo | |
| echo | |
| echo "Add the following to your .zshrc:" | |
| echo "export PS1=\"\$(context-color -p)\$PS1\\[\\\e[0m\\]\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -sS https://gist.githubusercontent.com/arbal/81c1c314c3fcf86e646d33f05b7921b6/raw | bash