Lines 5-13
Link Here
|
5 |
# examples/example.bashrc instead, as it will automatically find and source |
5 |
# examples/example.bashrc instead, as it will automatically find and source |
6 |
# this file. |
6 |
# this file. |
7 |
|
7 |
|
8 |
# Ensure drush is available. |
|
|
9 |
which drush > /dev/null || alias drush &> /dev/null || return |
10 |
|
11 |
__drush_ps1() { |
8 |
__drush_ps1() { |
12 |
f="${TMPDIR:-/tmp/}/drush-env/drush-drupal-site-$$" |
9 |
f="${TMPDIR:-/tmp/}/drush-env/drush-drupal-site-$$" |
13 |
if [ -f $f ] |
10 |
if [ -f $f ] |
Lines 31-34
_drush_completion() {
Link Here
|
31 |
} |
28 |
} |
32 |
|
29 |
|
33 |
# Register our completion function. We include common short aliases for Drush. |
30 |
# Register our completion function. We include common short aliases for Drush. |
34 |
complete -o bashdefault -o default -o nospace -F _drush_completion d dr drush drush5 drush6 drush7 drush.php |
31 |
complete -o bashdefault -o default -o nospace -F _drush_completion drush |
35 |
- |
|
|