-
Notifications
You must be signed in to change notification settings - Fork 25
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
Recreate zsh plugin #32
base: generate-aliases
Are you sure you want to change the base?
Conversation
generate/pkg/generate/generate.go
Outdated
_, err = io.WriteString(aliasFile, "#!/bin/bash\n") | ||
if err != nil { | ||
return fmt.Errorf("Warning: could not write shebang", err) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is required. Sourcing the file should be sufficient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This definitely isn't required. I just feel like it's good practice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe its completely ignored when the file is sourced. It doesnt hurt anything so Im okay for keeping it.
Ill add this if youd like. But if we want to move this to the official oh-my-zsh thing. We probably wanna add the generating aliases command we built out. Think it would need to add a bin to path and pull the latest built release to that. Im not sure if that is the standard ways of doing things. |
I am not sure if we'll be permitted to add the generating aliases binary to the official oh-my-zsh repo, but we should definitely be allowed to at least add our generated aliases |
So, we definitely should write a testing thing to check if all aliases work. A brainstorm use a kind cluster that we can run the aliases on and check if they work. At least the main generated aliases. |
Co-authored-by: Danny Burt <[email protected]>
Co-authored-by: Danny Burt <[email protected]>
This is a zsh plugin again