Skip to content

Instantly share code, notes, and snippets.

@arbal
Last active September 15, 2020 17:03
Show Gist options
  • Save arbal/81c1c314c3fcf86e646d33f05b7921b6 to your computer and use it in GitHub Desktop.
Save arbal/81c1c314c3fcf86e646d33f05b7921b6 to your computer and use it in GitHub Desktop.
context-color.sh
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\\]\""
@arbal
Copy link
Author

arbal commented Sep 15, 2020

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