Created
July 16, 2016 18:19
-
-
Save stevewood-tx/b091b487a379c1f0c8a5dc7a3155ef63 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
loggedInUser=`python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + "\n");'` | |
view rawcontents.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment