Last active
March 19, 2019 14:52
-
-
Save touren/fea61a8503464123afcb1a0253133894 to your computer and use it in GitHub Desktop.
Retrieve your account's avatar image in a MacBook
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
## Get current user's avatar. | |
export USER_HOME=~ | |
dscl . -read $USER_HOME JPEGPhoto | tail -1 | xxd -r -p > ~/Desktop/avatar.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment