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

master
Piotr Rogoża 5 years ago committed by GitHub
parent 040aadf7c4
commit 9d556cd545
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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 ))

Loading…
Cancel
Save