Skip to content

Instantly share code, notes, and snippets.

@shibafu528
Last active November 6, 2021 08:18
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 shibafu528/8d9e3a3cc8f71c14cd2123d48d9c1e25 to your computer and use it in GitHub Desktop.
Save shibafu528/8d9e3a3cc8f71c14cd2123d48d9c1e25 to your computer and use it in GitHub Desktop.
install mikutter twitter plugins for topic/887-gtk3
#!/bin/bash
# original: https://github.com/mikutter/twitter_bootstrap/blob/7704d9a8da4b6cc1fa4d8baad8a8eba1d455b704/twitter-bootstrap.sh
# GTK3_FORKS data source: https://twitter.com/tsutsuii/status/1455931218730500103
# usage:
# checkout to ~/.mikutter/plugin
# $ ./twitter-bootstrap-gtk3.sh
#
# checkout to another confroot
# $ ./twitter-bootstrap-gtk3.sh <confroot-path>
CONFROOT="${1:-~/.mikutter}"
PLUGINS=(
api_request_file_cache
direct_message
followingcontrol
home_timeline
list
list_for_profile
list_settings
mentions
message_detail_view
message_favorite
message_retweet
ratelimit
rest
saved_search
streaming
twitter
twitter_activity
twitter_datasource
twitter_settings
user_detail_view
)
GTK3_FORKS=(
followingcontrol
list_for_profile
list_settings
message_detail_view
message_retweet
user_detail_view
)
mkdir -p $CONFROOT/plugin/
for i in "${PLUGINS[@]}"; do
if [[ ! -e $CONFROOT/plugin/$i ]]; then
git clone https://github.com/mikutter/$i.git $CONFROOT/plugin/$i
fi
done
for i in "${GTK3_FORKS[@]}"; do
git -C $CONFROOT/plugin/$i remote add tsutsui https://github.com/tsutsui/$i.git
git -C $CONFROOT/plugin/$i fetch tsutsui
git -C $CONFROOT/plugin/$i checkout -b gtk3 tsutsui/gtk3
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment