Created
August 17, 2014 03:41
-
-
Save artur-kink/2aeabe4d02ba5ad085e9 to your computer and use it in GitHub Desktop.
Set your user avatar to a random image in your pictures folder, Centos 6.5 . Run at login to randomise image at each login.
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 | |
randomimage=`ls $HOME/Pictures | grep ".png\|.jpg" | shuf -n 1` | |
cp $HOME/Pictures/$randomimage $HOME/.face |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment