Skip to content

Instantly share code, notes, and snippets.

@jsoma jsoma/
Last active Dec 16, 2019

What would you like to do?
Installing tweego and story-formats on OS X.

Installing tweego is a little more complicated than (I think) it should be, so here's a script to do it for you. If you'd like to one-line it, you can just cut and paste this in Terminal:

curl | bash

Once it's installed, tweego docs are here. You'll probably want to read these twee docs, too.

# Building temporary directory
TMP=$(mktemp -d)
cd $TMP
# Downloading
curl -O
#curl -O
# Extracting
unzip -o
#unzip -o
# Setting permissions for tweego
chmod +x tweego
# Creating target directories
mkdir -p $TARGET/tweego
#mkdir -p $TARGET/tweego/story-formats
# Copying files
cp -R tweego $TARGET/tweego
#cp -R story-formats/* $TARGET/tweego/story-formats
# Adding to PATH
echo "export PATH=$TARGET/tweego:\$PATH" >> ~/.bash_profile
#echo "export TWEEGO_PATH=$TARGET/tweego/story-formats" >> ~/.bash_profile
# Updating current PATH
source ~/.bash_profile

This comment has been minimized.

Copy link

dylan-k commented Apr 18, 2019

Those download URLs seem to have changed. Easily fixed but thought you might want to know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.