Skip to content

Instantly share code, notes, and snippets.

@danmartens
Created August 21, 2014 19:16
Show Gist options
  • Save danmartens/e2e301f0559297cf0ca7 to your computer and use it in GitHub Desktop.
Save danmartens/e2e301f0559297cf0ca7 to your computer and use it in GitHub Desktop.
Foreman ZSH Plugin
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