Skip to content

Instantly share code, notes, and snippets.

@mzaragoza
Created January 22, 2015 21:31
Show Gist options
  • Save mzaragoza/d86af1859711f8efb8cf to your computer and use it in GitHub Desktop.
Save mzaragoza/d86af1859711f8efb8cf to your computer and use it in GitHub Desktop.
alias for ~/.bashrc.local
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"
function 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