Skip to content

Instantly share code, notes, and snippets.

@rombald
Last active August 29, 2015 13:57
Show Gist options
  • Save rombald/9483362 to your computer and use it in GitHub Desktop.
Save rombald/9483362 to your computer and use it in GitHub Desktop.
Bash stuff
# 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