Skip to content

Instantly share code, notes, and snippets.

View msonnabaum's full-sized avatar

Mark Sonnabaum msonnabaum

  • Lithic
  • San Diego, CA
View GitHub Profile
<?php
/**
* @file
*/
function ssh_drush_command() {
$items['ssh-blah'] = array(
'description' => '',
'arguments' => array(
__drush_ps1() {
local s
s="$(drush site-get)"
[[ -n "$s" ]] && printf "${1:- (%s)}" "$s"
}
drushprompt='$(__drush_ps1 "[%s]")'
@msonnabaum
msonnabaum / gist:1015280
Created June 8, 2011 20:11
drush_views.drush.inc
<?php
/**
* @file
*
*/
define('DRUSH_VIEWS_DEFAULT_PATH', "export/views");
/**
<?php
/**
* Implementation of hook_drush_command().
*/
function updaterollback_drush_command() {
$items['update-get-schema'] = array(
'description' => 'Drop all tables in a given database.',
'arguments' => array(
'module' => 'module',
<?php
/**
* Loads a node from cck values.
*/
function welcom_node_load($node_data, $type = NULL) {
// Create a new view
$view = views_new_view();
$view->name = 'cck_node_lookup';
$view->base_table = 'node';
" Janus undo-ing
" Switch buffers without saving.
set hidden
" Having this on breaks highlighting text with visual mode and then hitting d
" to delete or = to indent.
unlet macvim_hig_shift_movement
let g:syntastic_auto_jump=1
<?php
/**
* Command callback for sql-import.
*/
function drush_sql_import($local_file) {
if (!drush_confirm(dt('Do you really want to drop all tables and import !dump_file?', array('!dump_file' => $local_file)))) {
return drush_user_abort();
}
_drush_sql_drop();
<?php
/**
* @file
* Provide Drush integration for release building and dependency building.
*/
/**
* Implements hook_drush_command().
*/
function registry_rebuild_drush_command() {
<?php
/**
* XHProfRuns_Default is the default implementation of the
* iXHProfRuns interface for saving/fetching XHProf runs.
*
* It stores/retrieves runs to/from a filesystem directory
* specified by the "xhprof.output_dir" ini parameter.
*
* @author Kannan
diff --git a/commands/core/sitealias.drush.inc b/commands/core/sitealias.drush.inc
index 5352fd5..4f1ae22 100644
--- a/commands/core/sitealias.drush.inc
+++ b/commands/core/sitealias.drush.inc
@@ -39,6 +39,21 @@ function sitealias_drush_command() {
),
'topics' => array('docs-aliases'),
);
+ $items['site-set'] = array(
+ 'description' => '',