Browse Source

fix(emotty): fix `bad assignment` error (#9714)

Piotr Rogoża 4 years ago
parent
commit
9d556cd545
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/emotty/emotty.plugin.zsh

+ 1 - 1
plugins/emotty/emotty.plugin.zsh

@@ -29,7 +29,7 @@ function emotty() {
   # Parse tty number via prompt expansion. %l equals:
   # - N      if tty = /dev/ttyN
   # - pts/N  if tty = /dev/pts/N
-  local tty = ${${(%):-%l}##pts/}
+  local tty=${${(%):-%l}##pts/}
   # Normalize it to an emotty set index
   (( tty = (tty % ${#${=emotty}}) + 1 ))