This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Automatically add ticket numbers to commit messages using branch descriptions. | |
# Place this file in .git/hooks/commit-msg | |
# | |
# Add a description to your branch: | |
# git branch --edit-description [branch-name] | |
# | |
# Mark your ticket numbers anywhere in the description using the following | |
# syntax: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Quick directory change for drush. | |
# While inside a Drupal site, simply cdd to a module or theme by name. | |
# Add an alias to quickly jump to that site's root or any theme or module within that site | |
# | |
# EX. | |
# $ cdd zen (takes you to zen theme within current Drupal site) | |
# $ cdd @mysite (takes to you mysite root) | |
# $ cdd @mysite zen (takes you to zen theme in mysite from anywhere on the server) | |
## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Build a dynamic list of drush aliases by identifying Drupal directories. | |
* | |
* The script will scan your webroot for Drupal directories. Place this in | |
* /etc/drush/aliases.drushrc.php | |
* | |
* @param $root | |
* The absolute path to your webroot. |
NewerOlder