dots - my configuration files
log |
files |
refs emoji (386B) - raw
| #!/bin/sh
emojis="$XDG_CACHE_HOME/emojis.json"
if ! [ -f "$emojis" ]; then
curl -o "$emojis" -L "https://github.com/github/gemoji/raw/master/db/emoji.json"
fi
filter='.[] | (.emoji + " " + .description + " (" + (.aliases | join(", ")) + ")")'
emoji="$(jq -r "$filter" <"$emojis" | fzf | cut -d ' ' -f 1 | tr -d '\n')"
if [ -n "$emoji" ]; then
echo $emoji | tr -d '\n' | wl-copy
fi
|