Skip to content

Commit

Permalink
Remove dead code. Use drush init instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed May 10, 2016
1 parent 748316f commit e2eebc4
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions examples/example.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -110,34 +110,6 @@ alias q='drush sql-query'
# alias ssh='dssh'
# alias git='gitd'

# Find the Drush executable and test it.
d=$(which drush)
# If no program is found try an alias.
if [ -z "$d" ]; then
d=$(alias drush | cut -f 2 -d '=' | sed "s/'//g")
fi
# Test that drush is an executable.
[ -x "$d" ] || return

# If the file found is a symlink, resolve to the actual file.
if [ -h "$d" ] ; then
# Change `readlink` to `readlink -f` if your drush is a symlink to a symlink. -f is unavailable on OSX's readlink.
d2="$(readlink "$d")"
# If 'readlink' comes back as a relative path, then we need to fix it up.
if [[ "$d2" =~ ^"/" ]] ; then
d="$d2"
else
d="$(dirname $d)/$d2"
fi
fi

# Get the directory that Drush is stored in.
d="$(dirname "$d")"
# If we have found drush.complete.sh, then source it.
if [ -f "$d/drush.complete.sh" ] ; then
. "$d/drush.complete.sh"
fi

# We extend the cd command to allow convenient
# shorthand notations, such as:
# cd @site1
Expand Down

0 comments on commit e2eebc4

Please sign in to comment.