Skip to content

Instantly share code, notes, and snippets.

@latompa
Created November 13, 2017 16:38
Show Gist options
  • Save latompa/124d8e2df0707226a6385f69dbbe1036 to your computer and use it in GitHub Desktop.
Save latompa/124d8e2df0707226a6385f69dbbe1036 to your computer and use it in GitHub Desktop.
foreman function
#
# add to your ~/.bashrc
#
fore () {
APP_DIR="$HOME/src/$1"
if [ -z "$1" ]
then
echo "missing app name"
return 0
fi
if [ ! -d "$APP_DIR" ]
then
echo "app doesn't exist"
return 0
fi
cd "$HOME/src/$1"
echo -n -e "\033]0;$1\007"
foreman start -f Procfile.dev
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment