Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emotty theme + emotty plugin + oh-my-zsh.sh = ☠ #5482

Closed
Hi-Angel opened this issue Sep 30, 2016 · 4 comments
Closed

emotty theme + emotty plugin + oh-my-zsh.sh = ☠ #5482

Hi-Angel opened this issue Sep 30, 2016 · 4 comments
Labels
Area: theme Issue or PR related to a theme Bug Something isn't working

Comments

@Hi-Angel
Copy link

Hi-Angel commented Sep 30, 2016

% cat ~/.zshrc              
export ZSH=/home/constantine/.oh-my-zsh
ZSH_THEME="emotty"
plugins=(git emotty themes)
source $ZSH/oh-my-zsh.sh
% zsh
emotty:4: bad math expression: operand expected at `/dev/pts/2...'
emotty:6: bad math expression: empty string

Deleting the oh-my-zsh.sh line fixes the error, as is changing the theme. zsh version 5.2.

UPD: writing in ~/.zshenv the setopt noglobalrcs in order to overwrite system configs (and because it is needed in order to work for "oh-my-zsh" in Archlinux) still leads to the same result, except that zsh ends up not even having a prompt (other themes I tried works).

@mcornella mcornella added Area: theme Issue or PR related to a theme Bug Something isn't working labels Oct 2, 2016
@mcornella
Copy link
Member

I can reproduce this. The culprit seems to be this line in the emotty function of the emotty plugin:

(( tty = (${TTY##/dev/ttys} % ${#${=emotty}}) + 1 ))

Will research later.

@aacalfa
Copy link

aacalfa commented Nov 21, 2016

I'm getting the same problem, any updates on this?

@gaedol
Copy link

gaedol commented Feb 25, 2017

Confirmed also in an installation done today.

@mcornella
Copy link
Member

This turned out to be a really easy fix 😅.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: theme Issue or PR related to a theme Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants