Skip to content

Instantly share code, notes, and snippets.

@nhocki
Created April 13, 2010 02:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nhocki/364258 to your computer and use it in GitHub Desktop.
Save nhocki/364258 to your computer and use it in GitHub Desktop.
alias rmb='echo -n "Really clean this directory? [y/n] ";
read yorn;
if test "$yorn" = "y"; then
rm -f \#* *~ .*~ *.bak .*.bak *.tmp .*.tmp core a.out;
echo "Cleaned";
else
echo "Not Cleaned";
fi'
# alias emacs='open /Applications/Emacs.app'
alias ls='ls -aG'
alias ss='ruby script/server'
alias sg='ruby script/generate'
alias sc='ruby script/console'
alias sp='ruby script/plugin'
alias r='rails'
alias g='generate'
alias s='server'
alias rs='rails server'
alias rc='rails console'
alias rg='rails generate'
alias show_dot_files='defaults write com.apple.finder AppleShowAllFiles TRUE'
alias hide_dot_files='defaults write com.apple.finder AppleShowAllFiles FALSE'
alias ginit='git init && cp /home/hock/.gitignore .'
alias nifty='ruby script/plugin install git://github.com/ryanb/nifty-generators.git'
alias permalink='ruby script/plugin install git://github.com/febuiles/make_permalink.git'
alias my_permalink='ruby script/plugin install git://github.com/nhocki/make_permalink.git'
alias paperclip='ruby script/plugin install git://github.com/thoughtbot/paperclip.git'
alias decl='ruby script/plugin install git://github.com/stffn/declarative_authorization.git'
alias authlogic='ruby script/plugin install git://github.com/binarylogic/authlogic.git'
alias pingit='ping www.google.com'
alias reload_bash='source ~/.bashrc'
alias shcpp='source-highlight -i $1.cpp -o $1.tex -s cpp -f latexcolor'
alias shcc='source-highlight -i $1.cc -o $1.tex -s cpp -f latexcolor'
alias shjava='source-highlight -i $1.java -o $1.tex -s java -f latexcolor'
alias l='ls -CF'
alias vi='emacs -nw'
alias rubymine='sh ~/rubymine/bin/rubymine.sh'
alias lola='git log --graph --decorate --pretty=oneline --abbrev-commit'
alias gck='git checkout'
alias gst='git status'
alias gl='git pull'
alias dg='git diff | emacs'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gb='git branch'
alias gba='git branch -a'
alias gitk='gitk --all'
alias comcount='git shortlog -sn'
alias rvms='rvm system'
alias rjq='cd public/javascripts && wget http://github.com/rails/jquery-ujs/raw/master/src/rails.js'
#alias gp='git push'
function gp {
current_branch=`git branch | grep \* | awk '{print $2}'`
git push origin $current_branch
}
# alias gh='github'
alias c='cd ~/code/'
alias u='cd ~/university/2010-2/'
function nt {
osascript -e "
tell application \"System Events\" to tell process \"Terminal\" to keystroke \"t\" using command down
tell application \"Terminal\" to do script \"cd '$PWD' \" in selected tab of the front window "
}
# Enable color support of ls and also add handy aliases
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w\[\033[00m\] `git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\/`\$ '
export PATH='/Users/tesla/Downloads/omnetpp-4.1/bin':$PATH
if [[ -s /Users/tesla/.rvm/scripts/rvm ]] ; then source /Users/tesla/.rvm/scripts/rvm ; fi
[user]
name = Nicolás Hock Isaza
email = nhocki@gmail.com
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = blue bold
new = green bold
[color "status"]
added = yellow
changed = red
untracked = cyan
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log -p
[apply]
whitespace = nowarn
[core]
excludesfile = /Users/tesla/.gitignore
editor = emacs
[github]
token = MY_TOKEN
user = MY_USER
*~
*.BACKUP*
*.BASE*
*.LOCAL*
*.REMOTE*
log/*.log
*.orig
*#
db/*.sqlite3
.idea/*
.idea/
.DS_Store
.svn
set mainfont {Monaco 9}
set textfont {Monaco 9}
set uifont {"Monaco Bold" 9}
set tabstop 8
set findmergefiles 0
set maxgraphpct 50
set maxwidth 16
set cmitmode patch
set wrapcomment none
set autoselect 1
set showneartags 1
set hideremotes 0
set showlocalchanges 1
set datetimeformat {%Y-%m-%d %H:%M:%S}
set limitdiffs 1
set uicolor grey85
set want_ttk 1
set bgcolor white
set fgcolor black
set colors {green red blue magenta darkgrey brown orange}
set diffcolors {red "#00a000" blue}
set markbgcolor #e0e0ff
set diffcontext 3
set selectbgcolor gray85
set extdifftool meld
set perfile_attrs 0
set geometry(main) 1213x756+67+22
set geometry(state) zoomed
set geometry(topwidth) 1213
set geometry(topheight) 442
set geometry(pwsash0) "470 1"
set geometry(pwsash1) "790 1"
set geometry(botwidth) 658
set geometry(botheight) 309
set permviews {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment