Skip to content

Instantly share code, notes, and snippets.

@msonnabaum
Created June 7, 2011 01:15
Show Gist options
  • Save msonnabaum/1011481 to your computer and use it in GitHub Desktop.
Save msonnabaum/1011481 to your computer and use it in GitHub Desktop.
__drush_ps1() {
local s
s="$(drush site-get)"
[[ -n "$s" ]] && printf "${1:- (%s)}" "$s"
}
drushprompt='$(__drush_ps1 "[%s]")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment