Skip to content

Instantly share code, notes, and snippets.

@mzaragoza
Created January 7, 2015 20:27
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 mzaragoza/07613501a4cd88dbc08c to your computer and use it in GitHub Desktop.
Save mzaragoza/07613501a4cd88dbc08c to your computer and use it in GitHub Desktop.
bashrc.local
export PATH=${PATH}:/Applications/adt-bundle-mac/sdk/tools
export PATH=${PATH}:/Applications/adt-bundle-mac/sdk/platform-tools
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then source "$HOME/.rvm/scripts/rvm" ; fi
[[ -r $rvm_path/scripts/completion ]] && source $rvm_path/scripts/completion
#opexport PS1="\u:~$ "
vim() {
(unset GEM_PATH GEM_HOME; command vim "$@")
}
alias git_reset_all='git reset --hard HEAD'
alias find_large_files='find . -type f -size +10000k -exec ls -lh {} \;'
alias push_github="gp"
alias db_up="up"
alias bashrc="vim ~/.bashrc.local"
alias up="rake db:migrate db:test:prepare"
alias down="rake db:rollback"
alias cucumber='bundle exec cucumber'
alias bottle="git add . && git stash"
alias poop="git stash pop"
#alias remove_all_gems='gem list | cut -d" " -f1 | xargs gem uninstall -aIx'
alias remove_all_gems='for i in `gem list --no-versions`; do gem uninstall -aIx $i; done'
alias gaa="git add ."
alias gm="git merge"
alias vin="vim"
alias sss="foreman start"
alias convert_html2haml="find . -name '*html' | xargs ruby -e 'ARGV.each { |i| puts \"html2haml -r #{i} #{i.sub(/html$/,\"html.haml\")}\"}'"
alias convert_html2haml_do="find . -name '*html' | xargs ruby -e 'ARGV.each { |i| puts \"html2haml -r #{i} #{i.sub(/html$/,\"html.haml\")}\"}' | bash"
#find . -name '*html' | xargs ruby -e 'ARGV.each { |i| puts "html2haml -r #{i} #{i.sub(/html$/,"html.haml")}"}'
#find . -name '*html' | xargs ruby -e 'ARGV.each { |i| puts "html2haml -r #{i} #{i.sub(/html$/,"html.haml")}"}' | bash
alias chromeremote="adb foward tcp:9222 localabstract:chrome_devtools_remote"
[3:15 PM] Moises Zaragoza: cat <<INPUTRC >~/.inputrc
set completion-ignore-case On
TAB: menu-complete
INPUTRCfunction ListAllCommands
{
COMMANDS=`echo -n $PATH | xargs -d : -I {} find {} -maxdepth 1 \
-executable -type f -printf '%P\n'`
ALIASES=`alias | cut -d '=' -f 1`
echo "$COMMANDS"$'\n'"$ALIASES" | sort -u
}
cat <<INPUTRC >~/.inputrc
set completion-ignore-case On
TAB: menu-complete
INPUTRC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment