浏览代码

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

Piotr Rogoża 3 年之前
父节点
当前提交
9d556cd545
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 ))