diff options
author | William Carroll <wpcarro@gmail.com> | 2019-03-24T16·07+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2019-03-24T16·09+0000 |
commit | 7b46b6bfe1bfb26eff3e88947835273ca13d19b8 (patch) | |
tree | b7d7198a9283e827b5029e806826b6860d39b712 | |
parent | 362a623a0a4ae5e8fc92fd2b44eca36e7f47cccb (diff) |
Adds emoji font and function to test emoji support
In my quest to learn more about terminals, I added a function to output ten emojis. Technically this tests the same thing as test_unicode. Unfortunately I couldn't get `st` to output any colored emojis. This is a bit of a buzzkill for my grand plans to create a terminal-based chat client that supports emojis.
-rw-r--r-- | configs/shared/misc/.local/share/fonts/NotoColorEmoji.ttf | bin | 0 -> 7297112 bytes | |||
-rw-r--r-- | configs/shared/zsh/functions.zsh | 10 | ||||
-rw-r--r-- | configs/shared/zsh/variables.zsh | 9 |
3 files changed, 19 insertions, 0 deletions
diff --git a/configs/shared/misc/.local/share/fonts/NotoColorEmoji.ttf b/configs/shared/misc/.local/share/fonts/NotoColorEmoji.ttf new file mode 100644 index 000000000000..69cf21a1a9bf --- /dev/null +++ b/configs/shared/misc/.local/share/fonts/NotoColorEmoji.ttf Binary files differdiff --git a/configs/shared/zsh/functions.zsh b/configs/shared/zsh/functions.zsh index 3bf892355a92..4a0ee94b2926 100644 --- a/configs/shared/zsh/functions.zsh +++ b/configs/shared/zsh/functions.zsh @@ -303,6 +303,16 @@ test_unicode() { echo -e '\u26FD \u26FE \u26FF' } +test_emojis() { + # Outputs a few emojis to see if your terminal supports colored or + # monochromatic emojis. + for n in {0..9} + do + echo -e -n "\U1F60$n" + done + echo # newline to clean output +} + path() { # Pretty-print the $PATH variable echo "$PATH" | tr : '\n' diff --git a/configs/shared/zsh/variables.zsh b/configs/shared/zsh/variables.zsh index b45ea9eae1c0..129b62631d3a 100644 --- a/configs/shared/zsh/variables.zsh +++ b/configs/shared/zsh/variables.zsh @@ -40,6 +40,15 @@ bright_magenta='\u001b[35;1m' bright_cyan='\u001b[36;1m' bright_white='\u001b[37;1m' +# some of my favorite emojis as unicode +facepalm='\U1F926' +eyeroll='\U1F644' +sheesh='\U1F62C' +see_no_evil='\U1F648' +blush='\U1F60A' +wink='\U1F609' +laugh='\U1F923' + # commonly used config files v="$HOME/.config/nvim/init.vim" e="$HOME/.emacs.d/init.el" |