Commit 88d21fea authored by Alexis Hildebrandt's avatar Alexis Hildebrandt Committed by Marc Cornellà
Browse files

Improve emotty plugin (#5999)

* The display_emotty function show the name of the displayed emotty set

* Unless an emotty set was given show the emotty set configured
  in $emotty_set
parent 8e1cfc91
...@@ -32,7 +32,8 @@ function emotty() { ...@@ -32,7 +32,8 @@ function emotty() {
} }
function display_emotty() { function display_emotty() {
local name=$1 local name=${1:-$emotty_set}
echo $name
for i in ${=_emotty_sets[$name]}; do for i in ${=_emotty_sets[$name]}; do
printf "${emoji[$i]}${emoji2[emoji_style]} " printf "${emoji[$i]}${emoji2[emoji_style]} "
done done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment