Last active
November 6, 2021 08:18
-
-
Save shibafu528/8d9e3a3cc8f71c14cd2123d48d9c1e25 to your computer and use it in GitHub Desktop.
install mikutter twitter plugins for topic/887-gtk3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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_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