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

Recreate zsh plugin #32

Open
wants to merge 13 commits into
base: generate-aliases
Choose a base branch
from
Open

Recreate zsh plugin #32

wants to merge 13 commits into from

Conversation

Dbz
Copy link
Owner

@Dbz Dbz commented Sep 11, 2021

This is a zsh plugin again

kube-aliases.plugin.zsh Outdated Show resolved Hide resolved
kube-aliases.plugin.zsh Outdated Show resolved Hide resolved
Comment on lines 34 to 38
_, err = io.WriteString(aliasFile, "#!/bin/bash\n")
if err != nil {
return fmt.Errorf("Warning: could not write shebang", err)
}

Copy link
Collaborator

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.

Copy link
Owner Author

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?

Copy link
Collaborator

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.

@patmessina
Copy link
Collaborator

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.

@Dbz
Copy link
Owner Author

Dbz commented Sep 19, 2021

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

@patmessina
Copy link
Collaborator

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.

aliases.yaml Outdated Show resolved Hide resolved
aliases.yaml Show resolved Hide resolved
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.

None yet

3 participants