Skip to content

Instantly share code, notes, and snippets.

@nodtem66
Last active August 29, 2015 14:15
Show Gist options
  • Save nodtem66/1990ab4e48fbd1f1737f to your computer and use it in GitHub Desktop.
Save nodtem66/1990ab4e48fbd1f1737f to your computer and use it in GitHub Desktop.
coloring in bashrc
#!/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