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 manual installation instructions for latest Go releases to README.md #395

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,25 @@ winget install --id ahmetb.kubens

### Manual Installation (macOS and Linux)

Since `kubectx` and `kubens` are written in Bash, you should be able to install
them to any POSIX environment that has Bash installed.
#### Latest Go version

To install the latest Go version, first download the binaries from the
[**Releases page →**](https://github.com/ahmetb/kubectx/releases)

Be sure to download both `kubectx` and `kubens` releases for your OS and CPU
architecture.

Extract the binaries somewhere in your `PATH`, like `/usr/local/bin`

If you want autocompletion for your shell, you will have to clone the git
repository, or at least download the files from the completion folder, as
they are not included in the binary releases. You can then follow the steps
below to setup autocompletion.

#### Bash (old) version

Since `kubectx` and `kubens` older versions are written in Bash, you should be
able to install them to any POSIX environment that has Bash installed.

- Download the `kubectx`, and `kubens` scripts.
- Either:
Expand Down