mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-19 20:29:45 +01:00
fix(emotty): fix bad assignment
error (#9714)
This commit is contained in:
parent
040aadf7c4
commit
9d556cd545
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue