Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# BASH PROMPT COMBO FROM CYGWIN
# PS1="\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ "
#shopt -s expand_aliases
# Bash
alias l="ls -lhaX --color=always"
alias ll="ls -lhaX --color=always | grep '^d' && ls -lhaX --color=always | grep '^-' && ls -lhaX --color=always | grep '^l' "
alias lst="stat -c '%A %a %n' *"
@anandkkpr
anandkkpr / drupal-patch-strategy.md
Last active December 30, 2015 07:59
A full and verbose description of how to create patches and interdiffs for submission to the Drupal issue queue.

Drupal Patch Strategy:

Patches

  1. make changes then make patch BEFORE COMMITTING CHANGES
  • $ git diff > [project-name]-[project-version].[description].[issue-number]-[comment-number].patch
  • doesn't work when adding or deleting files
  1. you've made changes that INCLUDE adding/deleting files, BUT NOT COMMITTED
  • $ git [add|rm] ...