aa5279f2dc2502d13ae0e7d2fa8647db833e31f1
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
Fix typo that resulted in math error (#6731)
[emotty] fix typo that resulted in math error
Diff
1diff --git a/plugins/emotty/emotty.plugin.zsh b/plugins/emotty/emotty.plugin.zsh
2index 6a8bf61279472eb1ad46fd477ff8cc1d3386e2b0..b0d24c3227f496b156f909addf3f8a886a3c7613 100644
3--- a/plugins/emotty/emotty.plugin.zsh
4+++ b/plugins/emotty/emotty.plugin.zsh
5@@ -26,7 +26,7 @@ function emotty() {
6 # Use emotty set defined by user, fallback to default
7 local emotty=${_emotty_sets[${emotty_set:-$emotty_default_set}]}
8 # Parse $TTY number, normalizing it to an emotty set index
9- (( tty = (${TTY##/dev/ttys} % ${#${=emotty}}) + 1 ))
10+ (( tty = (${TTY##/dev/tty} % ${#${=emotty}}) + 1 ))
11 local character_name=${${=emotty}[tty]}
12 echo "${emoji[${character_name}]}${emoji2[emoji_style]}"
13 }