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

Change default editor on windows #454

Closed
huneau opened this issue Jun 21, 2022 · 1 comment · Fixed by #480
Closed

Change default editor on windows #454

huneau opened this issue Jun 21, 2022 · 1 comment · Fixed by #480

Comments

@huneau
Copy link

huneau commented Jun 21, 2022

I found something that could be changed for windows env

here =>

func getDefaultEditor() string {
if runtime.GOOS == "windows" {
return "notepad"
} else if g := os.Getenv("GIT_EDITOR"); g != "" {
return g
} else if v := os.Getenv("VISUAL"); v != "" {
return v
} else if e := os.Getenv("EDITOR"); e != "" {
return e
}
return defaultEditor
}

can you change the windows check at the end?

@jsoref
Copy link
Contributor

jsoref commented Aug 18, 2022

Do note that at the very least until this is fixed, the documentation here:

https://github.com/auth0/auth0-cli#customization

is wrong.

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 a pull request may close this issue.

2 participants