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

add ability to modify display of cluster and namespace #47

Merged
merged 1 commit into from
Feb 14, 2019

Conversation

bradym
Copy link
Contributor

@bradym bradym commented Apr 6, 2018

Our clusters use a domain-name style naming convention, which makes for a very long prompt when the whole cluster name is used. This PR adds two new variables that can be used to customize the display of the cluster and the namespace using a user-provided function.

I tried to give good explanations on how to use these in the README, please let me know if it's unclear or needs any additional changes.

Thanks!

@jonmosco
Copy link
Owner

jonmosco commented Apr 6, 2018

For the context, please see issue #24.

As far as the namespace is concerned, im still looking for the best option for aliasing this.

@jack4it
Copy link

jack4it commented Jun 6, 2018

The approach recommended in #24 to me is more of a workaround. This PR is awesome. It is powerful yet non-intrusive at all. It well covers my idea written here #54. I strongly vote for this.

@fverbist
Copy link

+1 on the changes from @luisdavim !

@jack4it
Copy link

jack4it commented Dec 11, 2018

@bradym will you merge this PR? :) looking forward to a release with this hook

@bradym
Copy link
Contributor Author

bradym commented Dec 12, 2018

@jack4it I don't have write access on the repo or I would. @jonmosco would need to merge it but based on his last comment I'm assuming that won't happen.

@jack4it jack4it mentioned this pull request Jan 21, 2019
@luisdavim
Copy link
Contributor

I would love to see this merged, I'm working with some clusters that follow a specific naming convention and end up with long names, with these chances I could write a custom function to shorten them by removing specific parts I don't care for...

@jonmosco
Copy link
Owner

This change looks good. Hopefully this will help most use cases and we can build upon it.

@jonmosco jonmosco merged commit d4d1fdc into jonmosco:master Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants