Last active
August 29, 2015 14:15
-
-
Save nodtem66/1990ab4e48fbd1f1737f to your computer and use it in GitHub Desktop.
coloring in bashrc
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
#!/bin/bash | |
alias grep='grep --color=auto' | |
alias ls='ls --color=auto' | |
PS1="\[\033[01;37m\]\$? \$(if [[ \$? == 0 ]]; then echo \"\[\033[01;32m\]\342\234\223\"; else echo \"\[\033[01;31m\]\342\234\227\"; fi) \[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment