9d556cd5458aba76dc4ab09bc53f53f2a1893ce9
- Author
- Piotr Rogoża <rogoza.piotr@gmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
fix(emotty): fix `bad assignment` error (#9714)
Diff
1diff --git a/plugins/emotty/emotty.plugin.zsh b/plugins/emotty/emotty.plugin.zsh
2index e288b5cfb02bd02fcddd384b96bb3e1f4bb64f75..4511275d6f193c9f8ba90b4cb89779727bc6a301 100644
3--- a/plugins/emotty/emotty.plugin.zsh
4+++ b/plugins/emotty/emotty.plugin.zsh
5@@ -29,7 +29,7 @@ function emotty() {
6 # Parse tty number via prompt expansion. %l equals:
7 # - N if tty = /dev/ttyN
8 # - pts/N if tty = /dev/pts/N
9- local tty = ${${(%):-%l}##pts/}
10+ local tty=${${(%):-%l}##pts/}
11 # Normalize it to an emotty set index
12 (( tty = (tty % ${#${=emotty}}) + 1 ))
13