mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 13:50:09 +00:00
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
This commit is contained in:
parent
8e1cfc9154
commit
88d21fea6c
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,8 @@ function emotty() {
|
|||
}
|
||||
|
||||
function display_emotty() {
|
||||
local name=$1
|
||||
local name=${1:-$emotty_set}
|
||||
echo $name
|
||||
for i in ${=_emotty_sets[$name]}; do
|
||||
printf "${emoji[$i]}${emoji2[emoji_style]} "
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue