Last active
July 20, 2017 18:12
-
-
Save hiroshiro/e9a06f18638820b0bab365d617d103fb to your computer and use it in GitHub Desktop.
random emoji for fish shell
This file contains hidden or 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
function random_emoji | |
if count $argv >/dev/null | |
set emojis $argv | |
else | |
set emojis β¨ π β‘ π³ πΏ π₯ π» π πΏ π· πΉ π πΊ π± π» πΌ π π π π π π§ π· π π π© π π π π π π | |
end | |
set emoji $emojis[(math (random)%(count $emojis)+1)] | |
echo -n " $emoji " | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment