Skip to content

Instantly share code, notes, and snippets.

@anyt
Last active August 29, 2015 13:59
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 anyt/10756160 to your computer and use it in GitHub Desktop.
Save anyt/10756160 to your computer and use it in GitHub Desktop.
#common
alias h='history'
alias hg='history|grep'
alias g='grep'
# file system
alias ls='ls -GFh'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias ..='cd ..'
alias ...='cd ../..'
# composer
alias c='composer'
alias cu='composer update'
#symfony 2
alias sf='php ./app/console'
alias sfc='sf cache:clear'
alias sfa='sf assets:install'
alias sfad='sf assetic:dump'
alias sfcp='sf cache:clear --env=prod --no-debug'
alias sff='sf doctrine:fixtures:load'
alias sfdbc='sf doctrine:database:create'
alias sfdbu='sf doctrine:schema:update --force'
alias sfup='sfc; sfcp; sfa; sfad; sfdbu'
#php cs fixer
alias csfix='php-cs-fixer fix src'
sfchmod() {
sudo rm -rf "$@"/*
sudo chmod +a "_www allow delete,write,append,file_inherit,directory_inherit" "$@"
sudo chmod +a "admin allow delete,write,append,file_inherit,directory_inherit" "$@"
}
#drupal
alias dca='drush cc all'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment