Last active
August 29, 2015 13:57
-
-
Save rombald/9483362 to your computer and use it in GitHub Desktop.
Bash stuff
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
# special view for git changes etc. | |
BLACK="\[\033[0;38m\]" | |
RED="\[\033[0;31m\]" | |
RED_BOLD="\[\033[01;31m\]" | |
BLUE="\[\033[01;34m\]" | |
GREEN="\[\033[0;32m\]" | |
YELLOW="\[\033[0;33m\]" | |
WHITE="\[\033[37m\]" | |
export PS1="$GREEN \w $RED\`ruby -e \"print (%x{git branch 2> /dev/null}.split(%r{\n}).grep(/^\*/ ).first || '').gsub(/^\* (.+)$/,'(\1) ')\"\`$YELLOW|\`ruby -e \"print RUBY_VERSION\"\`| $WHITE$\[\033[00m\] " | |
# import first brew extensions | |
export PATH=/usr/local/bin:$PATH | |
# list commands | |
alias l='ls -alhF -G' | |
alias ll='ls -alhF -G' | |
# other color for ls -G dirs | |
export LSCOLORS=gxfxcxdxbxegedabagacad | |
# json pp | |
alias json_pp='python -mjson.tool' | |
# alias to tmp dir | |
alias tmp='cd ~/tmp' | |
EDITOR=/usr/bin/vi | |
alias be='bundle exec' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment