Skip to content

Instantly share code, notes, and snippets.

@markuszoeller
Created October 5, 2016 09:26
Show Gist options
  • Save markuszoeller/907906870597bb87a561ece93cf8efd2 to your computer and use it in GitHub Desktop.
Save markuszoeller/907906870597bb87a561ece93cf8efd2 to your computer and use it in GitHub Desktop.
colored bash prompt
#!/usr/bin/env bash
# make the bash more pretty to see the input/output better
echo "" >> ~/.bashrc
echo "# prettify the bash: ">> ~/.bashrc
echo "export PS1='[\[$(tput setaf 7)\]\t \u@\h \[$(tput setaf 6)\]\w\[$(tput sgr0)\] ] \$ '" >> ~/.bashrc
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment