Created
August 21, 2014 19:16
-
-
Save danmartens/e2e301f0559297cf0ca7 to your computer and use it in GitHub Desktop.
Foreman ZSH Plugin
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
fs() { | |
if (( $# == 1 )); then | |
cd ~/Projects/$1; | |
fi | |
if ls 'Procfile.local' &> /dev/null; then | |
local procfile='Procfile.local' | |
echo "Starting foreman with Procfile.local..."; | |
else | |
local procfile='Procfile' | |
echo "Starting foreman with Procfile..."; | |
fi | |
foreman start -f $procfile; | |
} | |
_fs() { _files -W ~/Projects -/; } | |
compdef _fs fs | |
alias fs='nocorrect fs' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment