Last active
July 15, 2016 15:20
-
-
Save ikennaokpala/ebc411cae115fc81949090bd17cec11a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BELOW ARE A COLLECTION OF HANDY GOVUK SCRIPTS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo gem install bowl | |
export PROJECTS=$( ls -d /var/govuk/*/ ) | |
for path in $PROJECTS; do | |
if [[ -f "$path/Gemfile.lock" ]]; then | |
echo "Bundling $path" | |
/bin/bash -l -c "cd $path && bundle install" #> /dev/null 2>&1 | |
fi | |
done | |
wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export CONTENT_MODELS_DEV=true | |
alias rgma="RUN_REGRESSION_TESTS=marriage-abroad bundle exec ruby test/regression/smart_answers_regression_test.rb" | |
alias rga="RUN_REGRESSION_TESTS=true bundle exec ruby test/regression/smart_answers_regression_test.rb" | |
alias csma="bundle exec rails r script/generate-checksums-for-smart-answer.rb marriage-abroad" | |
alias sa="cd /var/govuk/smart-answers" | |
### Added by the Heroku Toolbelt | |
export PATH="/usr/local/heroku/bin:$PATH" | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
#export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ " | |
export PS1="\[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment