my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
937 B

3 years ago
  1. # emotty plugin
  2. This plugin returns an emoji for the current $TTY number so it can be used
  3. in a prompt.
  4. To use it, add emotty to the plugins array in your zshrc file:
  5. ```
  6. plugins=(... emotty)
  7. ```
  8. **NOTE:** it requires the [emoji plugin](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/emoji).
  9. ## Usage
  10. The function `emotty` displays an emoji from the current character set (default: `emoji`), based
  11. on the number associated to the `$TTY`.
  12. There are different sets of emoji characters available, to choose a different
  13. set, set `$emotty_set` to the name of the set you would like to use, e.g.:
  14. ```
  15. emotty_set=nature
  16. ```
  17. ### Character Sets
  18. - emoji
  19. - loral
  20. - love
  21. - nature
  22. - stellar
  23. - zodiac
  24. Use the `display_emotty` function to list the emojis in the current character set, or
  25. the character set passed as the first argument. For example:
  26. ```
  27. $ display_emotty zodiac
  28. <list of all the emojis in the zodiac character set>
  29. ```