Skip to content

Commit

Permalink
Merge pull request #27 from quickliketurtle/jf-cd-at-end-of-script
Browse files Browse the repository at this point in the history
CD at end of script by starting a new subprocess
  • Loading branch information
mattstauffer authored Mar 10, 2017
2 parents 5fbc485 + f1cc960 commit f77a4ea
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions lambo
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,21 @@ case $PROJECTPATH in
*) prettyPath="$PROJECTPATH/$PROJECTNAME" ;;
esac

echo "
if [[ "$SHELL" != "" ]]; then
exec "$SHELL"

***********************************************
echo "
You're ready to go! Remember to cd into '${green}$prettyPath${reset}' before you start editing."
***********************************************
You're ready to go!"
else
echo "
***********************************************
You're ready to go! Remember to cd into '${green}$prettyPath${reset}' before you start editing."
fi

# End script; disable error handling
trap : 0

0 comments on commit f77a4ea

Please sign in to comment.