Skip to content

Instantly share code, notes, and snippets.

@pookjw
Created January 2, 2020 02:11
Show Gist options
  • Save pookjw/91a45dbca82158f0f7071f76fa15bb08 to your computer and use it in GitHub Desktop.
Save pookjw/91a45dbca82158f0f7071f76fa15bb08 to your computer and use it in GitHub Desktop.
#!/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