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

Declare variables global/local #90

Closed
wants to merge 2 commits into from

Conversation

alyssais
Copy link

This caused warnings with setopt warn_create_global

@olivierverdier
Copy link
Owner

Nice! Thank you!

These aren't in functions so won't cause warnings normally,
but they can do if zshrc.sh is sourced from inside a function
@alyssais
Copy link
Author

alyssais commented Nov 2, 2016

@olivierverdier any chance we can get this merged?

GIT_CHANGED=$__CURRENT_GIT_STATUS[6]
GIT_UNTRACKED=$__CURRENT_GIT_STATUS[7]

typeset -ga __CURRENT_GIT_STATUS=("${(@s: :)_GIT_STATUS}")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get an error on this line: no matches found: __CURRENT_GIT_STATUS=(). I don't know enough zsh to understand that...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@olivierverdier Python or Haskell?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My guess is this is happening because _GIT_STATUS is empty, but I can't see why this change would have affected that…

@alyssais
Copy link
Author

As is probably obvious, I don’t plan on working on this any more :(

@alyssais alyssais closed this Jan 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants