Created
January 2, 2020 02:11
-
-
Save pookjw/91a45dbca82158f0f7071f76fa15bb08 to your computer and use it in GitHub Desktop.
This file contains 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/sh | |
while(true); do | |
echo "CircularAvatars를 활성화시키려면 enable를 입력하고, 원상복구하려면 disable를 입력하세요." | |
read -p "- " OPTION | |
ps cax | grep Twitter > /dev/null | |
if [ $? -eq 0 ]; then | |
killall Twitter | |
REOPEN=yes | |
fi | |
if [ -z "$OPTION" ]; then | |
exit | |
fi | |
if [[ "$OPTION" == enable ]]; then | |
defaults write com.twitter.twitter-mac CircularAvatars -bool true | |
fi | |
if [[ "$OPTION" == disable ]]; then | |
defaults write com.twitter.twitter-mac CircularAvatars -bool false | |
fi | |
if [[ "$REOPEN" == yes ]]; then | |
open -a Twitter | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment