Skip to content

Commit

Permalink
Adding blt alias to Drupal VM. (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash authored Oct 13, 2016
1 parent 50c8f06 commit 006877f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/drupal-vm/post-provision.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env bash

# Append vendor/bin to $PATH via ~/.bashrc modification.
grep -q -F 'export PATH=/var/www/$(hostname -d | cut -d"." -f 1)/vendor/bin:$PATH' .bashrc || echo 'export PATH=/var/www/$(hostname -d | cut -d"." -f 1)/vendor/bin:$PATH' >> .bashrc
set -x
REPO_ROOT=/var/www/$(hostname -d | cut -d"." -f 1)
cd $REPO_ROOT

# Add blt alias to front of .bashrc
grep -q -F 'blt' ~/.bashrc || (cat ./vendor/acquia/blt/scripts/blt/alias ~/.bashrc > temp && mv temp ~/.bashrc)

0 comments on commit 006877f

Please sign in to comment.