Created
November 13, 2017 16:38
-
-
Save latompa/124d8e2df0707226a6385f69dbbe1036 to your computer and use it in GitHub Desktop.
foreman function
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
# | |
# 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