Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samplereality/cc563160350cafd8b3080722d91c76d9 to your computer and use it in GitHub Desktop.
Save samplereality/cc563160350cafd8b3080722d91c76d9 to your computer and use it in GitHub Desktop.
Installing tweego and story-formats on OS X.

To download and run this script in a single command, cut and paste this in Terminal:

curl https://gist.githubusercontent.com/JoshuaGrams/845eb0e0cd8e8fb42668028792b37ce7/raw/f7de596a50eff8734483c560560ef441a9f26c33/tweego.sh | bash
# Switch to a temporary directory, then download and extract Tweego.
TMP=$(mktemp -d)
cd $TMP
curl -O https://github.com/tmedwards/tweego/releases/download/v2.1.1/tweego-2.1.1-macos-x64.zip
unzip -o tweego-2.1.1-macos-x64.zip
# Make sure tweego is executable.
chmod +x tweego
# Create the target directory and copy the files.
TARGET=$HOME/tweego
mkdir -p $TARGET
cp -R . $TARGET
# Update .bash_profile to add our directory to the PATH.
echo "export PATH=$TARGET:\$PATH" >> ~/.bash_profile
# And run .bash_profile to update the current PATH.
source ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment