Permalink
Browse files

Renamed all the files/dirs. Reformatted some of the files. Stole a co…

…uple things from rtlechow/dotfiles :)
  • Loading branch information...
1 parent f0dd732 commit 6fc5cf086b709e9990334a75d41a18b559d3ab85 @gf3 gf3 committed Feb 21, 2010
Showing with 3,404 additions and 0 deletions.
  1. +6 −0 .ackrc
  2. +20 −0 .bash_aliases
  3. +36 −0 .bash_profile
  4. +43 −0 .bash_prompt
  5. +37 −0 .gitconfig
  6. +11 −0 .irbrc
  7. +2,624 −0 .scripts/ack
  8. +33 −0 .scripts/bookmarklet
  9. +66 −0 .scripts/git-publish-branch
  10. +60 −0 .scripts/git-rank-contributors
  11. +47 −0 .scripts/git-select-add
  12. +49 −0 .scripts/git-show-merges
  13. +359 −0 .scripts/git-wtf
  14. +13 −0 .vimrc
View
6 .ackrc
@@ -0,0 +1,6 @@
+--ignore-dir=log
+--ignore-dir=tmp
+--ignore-dir=vendor
+--ignore-dir=public/generated
+--sort-files
+-a
View
@@ -0,0 +1,20 @@
+# Dir navigation
+alias ..='cd ..'
+alias ...='cd ../..'
+alias ~='cd ~'
+alias a="ack -ia"
+alias ll="ls -lahG"
+alias ls="ls -G"
+
+# Utilities
+alias d="du -h -d=1"
+alias df="df -h"
+alias g="git"
+alias h="history"
+alias httpdump="sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E \"Host\: .*|GET \/.*\""
+alias grep='GREP_COLOR="1;37;41" LANG=C grep --color=auto'
+alias ip="curl -s http://checkip.dyndns.com/ | sed 's/[^0-9\.]//g'"
+alias localip="ipconfig getifaddr en1"
+
+# Sync
+alias sync_irc="rsync -avz ~/Sites/IRC/ slice:/home/gianni/www/irc.gf3.ca"
View
@@ -0,0 +1,36 @@
+# Aliases
+if [ -f ~/.bash_aliases ]; then
+ source ~/.bash_aliases
+fi
+
+# Prompt
+if [ -f ~/.bash_prompt ]; then
+ source ~/.bash_prompt
+fi
+
+# Editor
+export EDITOR="mate -w"
+
+# Larger bash history (default is 500)
+export HISTFILESIZE=10000
+export HISTSIZE=10000
+
+# PATH + Private bin
+if [ -d ~/.scripts ] ; then
+ PATH="~/.scripts:$PATH"
+fi
+PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
+
+# Some junk
+export JAVA_HOME="/Library/Java/Home"
+export JRUBY_HOME="/Users/gianni/Projects/java/jruby-1.3.1"
+
+# http://blog.thinkrelevance.com/2009/7/29/ruby-switcher-working-with-multiple-ruby-versions-has-never-been-this-easy/
+# source ~/.ruby_switcher.sh
+
+# -- start rip config -- #
+RIPDIR=/Users/gianni/.rip
+RUBYLIB="$RUBYLIB:$RIPDIR/active/lib"
+PATH="$PATH:$RIPDIR/active/bin"
+export RIPDIR RUBYLIB PATH
+# -- end rip config -- #
View
@@ -0,0 +1,43 @@
+# Sexy Bash Prompt, inspired by "Extravagant Zsh Prompt"
+# Screenshot: http://img.gf3.ca/d54942f474256ec26a49893681c49b5a.png
+# A big thanks to \amethyst on Freenode
+
+if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then export TERM=gnome-256color
+elif infocmp xterm-256color >/dev/null 2>&1; then export TERM=xterm-256color
+fi
+
+if tput setaf 1 &> /dev/null; then
+ tput sgr0
+ if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then
+ MAGENTA=$(tput setaf 9)
+ ORANGE=$(tput setaf 172)
+ GREEN=$(tput setaf 190)
+ PURPLE=$(tput setaf 141)
+ WHITE=$(tput setaf 256)
+ else
+ MAGENTA=$(tput setaf 5)
+ ORANGE=$(tput setaf 4)
+ GREEN=$(tput setaf 2)
+ PURPLE=$(tput setaf 1)
+ WHITE=$(tput setaf 7)
+ fi
+ BOLD=$(tput bold)
+ RESET=$(tput sgr0)
+else
+ MAGENTA="\033[1;31m"
+ ORANGE="\033[1;33m"
+ GREEN="\033[1;32m"
+ PURPLE="\033[1;35m"
+ WHITE="\033[1;37m"
+ BOLD=""
+ RESET="\033[m"
+fi
+
+parse_git_dirty () {
+ [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*"
+}
+parse_git_branch () {
+ git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\1$(parse_git_dirty)/"
+}
+
+PS1="\[${BOLD}${MAGENTA}\]\u \[$WHITE\]at \[$ORANGE\]\h \[$WHITE\]in \[$GREEN\]\w\[$WHITE\]\$([[ -n \$(git branch 2> /dev/null) ]] && echo \" on \")\[$PURPLE\]\$(parse_git_branch)\[$WHITE\]\n\$ \[$RESET\]"
View
@@ -0,0 +1,37 @@
+[user]
+ name = Gianni Chiappetta
+ email = EMAIL
+[github]
+ user = gf3
+ token = TOKEN
+[alias]
+ st = status
+ ci = commit
+ br = branch
+ co = checkout
+ df = diff
+ lg = log -p
+ sa = select-add
+ pb = publish-branch
+ rc = rank-contributors
+ sm = show-merges
+ pp = !"echo 'Pull'; git pull; echo 'Push'; git push"
+[color]
+ ui = auto
+[color "branch"]
+ current = yellow reverse
+ local = yellow
+ remote = green
+[color "diff"]
+ meta = yellow bold
+ frag = magenta bold
+ old = red bold
+ new = green bold
+[color "status"]
+ added = yellow
+ changed = green
+ untracked = cyan
+[merge]
+ log = true
+[core]
+ editor = mate -wl1
View
11 .irbrc
@@ -0,0 +1,11 @@
+# Load Stuff
+require 'rubygems'
+require 'utility_belt'
+# require 'wirble'
+
+# Start wirble (with color)
+# Wirble.init
+# Wirble.colorize
+
+# Custom helpers
+require "/Users/gianni/Projects/ruby/helpers.rb"
Oops, something went wrong.

0 comments on commit 6fc5cf0

Please sign in to comment.