88d21fea6c0d90e58f221f9a2320ba7b73dac97a

Author
Alexis Hildebrandt <afh@surryhill.net>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

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

Diff

 1diff --git a/plugins/emotty/emotty.plugin.zsh b/plugins/emotty/emotty.plugin.zsh
 2index b32dd1a4c52b0a76ec21b6b7a5485db6f6a5af5a..6a8bf61279472eb1ad46fd477ff8cc1d3386e2b0 100644
 3--- a/plugins/emotty/emotty.plugin.zsh
 4+++ b/plugins/emotty/emotty.plugin.zsh
 5@@ -32,7 +32,8 @@ function emotty() {
 6 }
 7 
 8 function display_emotty() {
 9-  local name=$1
10+  local name=${1:-$emotty_set}
11+  echo $name
12   for i in ${=_emotty_sets[$name]}; do
13     printf "${emoji[$i]}${emoji2[emoji_style]}  "
14   done