Created
June 8, 2015 19:00
-
-
Save ulasozguler/027ea0d8d078162e8575 to your computer and use it in GitHub Desktop.
Changes OS X menu bar time format to whatever the fuck you want.
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/bash | |
killall -KILL SystemUIServer | |
killall -KILL SystemUIServer &> /dev/null | |
echo "Press CTRL+C when format changes." | |
if [ -z "$1" ]; then format="YYYY.MM.dd HH:mm:ss"; else format="$1"; fi | |
while true | |
do | |
defaults write com.apple.menuextra.clock "DateFormat" "$format" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment