Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eth-p/fish-kubeswitch
A kubectx/kubens replacement for fish.
https://github.com/eth-p/fish-kubeswitch
fish fish-plugin fish-shell fisher fisherman kubectx kubens kubernetes kubernetes-contexts oh-my-fish
Last synced: 8 days ago
JSON representation
A kubectx/kubens replacement for fish.
- Host: GitHub
- URL: https://github.com/eth-p/fish-kubeswitch
- Owner: eth-p
- Created: 2021-08-06T08:57:50.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-15T02:25:45.000Z (almost 2 years ago)
- Last Synced: 2023-03-08T06:49:14.981Z (over 1 year ago)
- Topics: fish, fish-plugin, fish-shell, fisher, fisherman, kubectx, kubens, kubernetes, kubernetes-contexts, oh-my-fish
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fish-kubeswitch
A `kubectx`/`kubens` replacement that sets the `kubectl` config file, context, and namespace for each individual instance of the fish shell.
## Features
- Change the `kubectl` config file, context, and namespace of only one fish instance.
(No more outdated/incorrect prompts!)
- Barebones installation, easy configuration.## Install
With [fisher](https://github.com/jorgebucaran/fisher):
```fish
fisher install eth-p/fish-kubeswitch# Make sure that "kubectl" runs within the kubeswitch environment.
echo "kubeswitch kubectl-alias kubectl" >> ~/.config/fish/config.fish# New shell instances will use the last-set kubeswitch environment.
echo "kubeswitch inherit-env" >> ~/.config/fish/config.fish
```## Documentation
[View the latest documentation in the docs folder.](docs/README.md)