Skip to content

Instantly share code, notes, and snippets.

@ForestMars
Created May 14, 2013 23:46
Show Gist options
  • Select an option

  • Save ForestMars/5580648 to your computer and use it in GitHub Desktop.

Select an option

Save ForestMars/5580648 to your computer and use it in GitHub Desktop.
Alias file
# Meta
alias al='source ~/.bash_aliases'
alias ali='vi ~/.bash_aliases'
# Git
alias gt='git'
alias gpm='git pull origin master'
alias gnb='git checkout -b'
alias gcm='git commit -m'
alias gaa='git add .'
# Vagrant
alias v='vagrant'
alias vag='cd vagrant'
alias dvag='cd ../drupal_vagrant'
alias vup='vagrant up'
# Getting around
alias uls='cd ../ && ls'
alias cus='cd sites/all/modules/custom'
alias aj='ht && cd drupal-7.22/sites/all/'
## Archetype Me
alias archeme='cd /Applications/MAMP/htdocs/archetypeme'
alias sqldown='drush sql-sync @rackspace.arche.stage @self --no-cache -y'
alias devdown='drush sql-sync @rackspace.arche.dev @pantheon.archetypes.local --no-cache -y'
alias build="ssh build@ev 'cd ~/archetypesdeployment/cap && time cap deploy' "
alias drudev='drush @pantheon.archetypes.dev'
alias druqa='drush @pantheon.archetypes.test'
alias pandown='drush pan-sql-sync @pantheon.archetypes.dev @pantheon.archetypes.local --no-cache -y'
alias panup='drush pan-sql-sync @pantheon.archetypes.local @pantheon.archetypes.dev --no-cache -y'
alias pandowntest='drush pan-sql-sync @pantheon.archetypes.test @pantheon.archetypes.local --no-cache -y'
alias panuptest='drush pan-sql-sync @pantheon.archetypes.local @pantheon.archetypes.test --no-cache -y'
alias pandownlive='drush pan-sql-sync @pantheon.archetypes.live @pantheon.archetypes.local --no-cache -y'
alias panuplive='drush pan-sql-sync @pantheon.archetypes.local @pantheon.archetypes.live --no-cache -y'
alias au='arches && u'
alias asam='arches && sam'
alias asamco='arches && samco'
alias asamcu='arches && samcu'
# Drush
alias dcc='time drush cc all'
alias dpml='drush pml --no-core --type=module --status=enabled'
# Useful
alias grep='grep -n'
alias samcu='sam && cd custom'
alias sat='cd sites/all/themes'
alias hco='history | grep co'
# Scripts
alias dd='~/drushbu.sh'
alias panfiles='~/panfiles.sh'
# alias build="ssh build@ev 'build' "
alias b2s="ssh build@ev 'cd ~/deploy && cap deploy'"
# Pachyderm
alias ev='cd /Applications/MAMP/htdocs/ev'
alias kick='cd /Applications/MAMP/htdocs/kickstart'
alias kick='cd /Applications/MAMP/htdocs/commerce_kickstart-7.x-2.4'
# Projects
alias mj='cd /Applications/MAMP/htdocs/cotymj/'
alias mjv='cd /Applications/MAMP/htdocs/cotymj/vagrant/'
alias mjw='cd /Applications/MAMP/htdocs/cotymj/web/'
# Build Server
alias bb='ssh build@ev'
# This doesn't actually work.
alias !!!='sudo !!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment