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

Need to add proper question to Betty ( Betty '?' and the ZSH ) #9

Open
xeon-zolt opened this issue Oct 16, 2016 · 5 comments
Open

Need to add proper question to Betty ( Betty '?' and the ZSH ) #9

xeon-zolt opened this issue Oct 16, 2016 · 5 comments

Comments

@xeon-zolt
Copy link
Member

Need to add proper question to Betty

currently betty is not able to take proper questions on ZSH (after testing) by proper i mean a?at the end

to reproduce the problem go to

Betty/lib/betty.rb

and go to line 5
if command.match(/^what can you do for me$/)
replace it with
if command.match(/^what can you do for me\?$/)

Betty running with regex line with '?' on ZSH

betty buggy

Betty running without manners (she is not sensitive any more)

currentlly on patch from @tessi

screenshot from 2016-10-16 19-07-46

A GIF showing it

peek 2016-10-16 12-49

@tessi
Copy link
Collaborator

tessi commented Oct 16, 2016

I see your screencast and that things fail there. Somehow, I can't reproduce the issue on zsh and bash.

So, I need you help debugging this. How did you set up betty, @xeon-zolt ?

I tested it with:

./main.rb what can you do for me?

and it works (of course after re-adding the question mark in the regexp).

@xeon-zolt
Copy link
Member Author

used the install script

cd betty 
ruby install.rb

and then used the commands in above screen shots.

i think it can be a issue with my zsh configuration
and if i can figure it out will add it to readme

@xeon-zolt
Copy link
Member Author

problem found @tessi
but not the solution
check this

screenshot from 2016-10-16 21-02-30

need to do somthing with zsh config

@eloquenza
Copy link

eloquenza commented Sep 28, 2017

You could try to add an in your .zshrc:
alias betty='noglob betty'
or unset the option entirely:
unsetopt nomatch.

Edit: Apparently, I unassigned you. I do not know how, but I am sorry.

@xeon-zolt
Copy link
Member Author

we can also add i to installer to add it to zshrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants