sh 在OS X上安装tweego和故事格式。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 在OS X上安装tweego和故事格式。相关的知识,希望对你有一定的参考价值。

Installing [tweego](https://www.motoslave.net/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 https://gist.githubusercontent.com/jsoma/5ef3045b2004a610455f371479a6f0cf/raw/bebb34dd808a1703dd37df1fc14fee04685776f2/tweego.sh | bash
```

Once it's installed, [tweego docs are here](https://www.motoslave.net/tweego/docs/). You'll probably want to read [these twee docs](https://twinery.org/cookbook/terms/terms_twee.html), too.
# run by doing:
# curl https://gist.githubusercontent.com/dylan-k/56dd5658455916252b1d2edbe4a427f3/raw/ae124af9db73021a4a67dd6289492c0fa382e684/tweego.sh | bash


# Building temporary directory
TMP=$(mktemp -d)
TARGET=$HOME
cd $TMP

# Downloading
# these URLs may change on occasion
curl -O http://www.motoslave.net/tweego/download.php/tweego-1.3.0-macos-x64.zip
curl -O http://www.motoslave.net/tweego/download.php/story-formats-20190129.zip

# Extracting...
# If URLs changed above, update these filenames accordingly
unzip -o tweego-1.3.0-macos-x64.zip
unzip -o story-formats-20190129.zip

# 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 LICENSE $TARGET/LICENSE
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

以上是关于sh 在OS X上安装tweego和故事格式。的主要内容,如果未能解决你的问题,请参考以下文章

sh 使用HomeBrew和所有库​​和支持在OS X上安装FFMPEG

sh 使用HomeBrew和所有库​​和支持在OS X上安装FFMPEG

sh 在OS X上安装Postgres

sh 在OS X Yosemite上安装OpenCV

sh 使用brew 0.9.5在Mac OS X 10.10.1上安装和设置bind(named)

sh 使用brew 0.9.5在Mac OS X 10.10.1上安装和设置bind(named)