Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
02383017
Commit
02383017
authored
Aug 14, 2015
by
LE Manh Cuong
Browse files
Emoji plugin - Fix wrong string comparison
parent
192de6bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
plugins/emoji/emoji-char-definitions.zsh
View file @
02383017
...
@@ -7,8 +7,12 @@
...
@@ -7,8 +7,12 @@
# $emoji - which maps character names to Unicode characters
# $emoji - which maps character names to Unicode characters
# $emoji_flags - maps country names to Unicode flag characters using region indicators
# $emoji_flags - maps country names to Unicode flag characters using region indicators
# Main emoji
typeset
-gAH
emoji
typeset
-gAH
emoji
# National flags
typeset
-gAH
emoji_flags
typeset
-gAH
emoji_flags
# Combining modifiers
typeset
-gAH
emoji_mod
emoji[copyright_sign]
=
$'
\U
00A9'
emoji[copyright_sign]
=
$'
\U
00A9'
emoji[registered_sign]
=
$'
\U
00AE'
emoji[registered_sign]
=
$'
\U
00AE'
...
@@ -448,10 +452,15 @@ emoji[badminton_racquet_and_shuttlecock]=$'\U1F3F8'
...
@@ -448,10 +452,15 @@ emoji[badminton_racquet_and_shuttlecock]=$'\U1F3F8'
emoji[bow_and_arrow]
=
$'
\U
1F3F9'
emoji[bow_and_arrow]
=
$'
\U
1F3F9'
emoji[amphora]
=
$'
\U
1F3FA'
emoji[amphora]
=
$'
\U
1F3FA'
emoji[emoji_modifier_fitzpatrick_type_1_2]
=
$'
\U
1F3FB'
emoji[emoji_modifier_fitzpatrick_type_1_2]
=
$'
\U
1F3FB'
emoji_mod[emoji_modifier_fitzpatrick_type_1_2]
=
$'
\U
1F3FB'
emoji[emoji_modifier_fitzpatrick_type_3]
=
$'
\U
1F3FC'
emoji[emoji_modifier_fitzpatrick_type_3]
=
$'
\U
1F3FC'
emoji_mod[emoji_modifier_fitzpatrick_type_3]
=
$'
\U
1F3FC'
emoji[emoji_modifier_fitzpatrick_type_4]
=
$'
\U
1F3FD'
emoji[emoji_modifier_fitzpatrick_type_4]
=
$'
\U
1F3FD'
emoji_mod[emoji_modifier_fitzpatrick_type_4]
=
$'
\U
1F3FD'
emoji[emoji_modifier_fitzpatrick_type_5]
=
$'
\U
1F3FE'
emoji[emoji_modifier_fitzpatrick_type_5]
=
$'
\U
1F3FE'
emoji_mod[emoji_modifier_fitzpatrick_type_5]
=
$'
\U
1F3FE'
emoji[emoji_modifier_fitzpatrick_type_6]
=
$'
\U
1F3FF'
emoji[emoji_modifier_fitzpatrick_type_6]
=
$'
\U
1F3FF'
emoji_mod[emoji_modifier_fitzpatrick_type_6]
=
$'
\U
1F3FF'
emoji[rat]
=
$'
\U
1F400'
emoji[rat]
=
$'
\U
1F400'
emoji[mouse]
=
$'
\U
1F401'
emoji[mouse]
=
$'
\U
1F401'
emoji[ox]
=
$'
\U
1F402'
emoji[ox]
=
$'
\U
1F402'
...
...
plugins/emoji/update_emoji.pl
View file @
02383017
...
@@ -88,7 +88,7 @@ typeset -gAH emoji_mod
...
@@ -88,7 +88,7 @@ typeset -gAH emoji_mod
}
}
# Modifiers are included in both the main set and their separate map,
# Modifiers are included in both the main set and their separate map,
# because they have a standalone representation as a color swatch.
# because they have a standalone representation as a color swatch.
if
(
$modifier_status
==
"
modifier
"
)
{
if
(
$modifier_status
eq
"
modifier
"
)
{
$outfh
->
print
("
emoji_mod[
$omz_name
]=
\$
'
$zsh_code
'
\n
");
$outfh
->
print
("
emoji_mod[
$omz_name
]=
\$
'
$zsh_code
'
\n
");
}
}
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment