From 5aba9fa3111a530864054d4e47f6668042d57d0d Mon Sep 17 00:00:00 2001 From: Justin Garrison Date: Fri, 25 Sep 2020 14:37:59 -0700 Subject: [PATCH] Add Homebrew install for Linux (#261) * Add Homebrew install for Linux Is there a reason why `brew` install instructions isn't included for Linux? Because it's bash I'm able to install it just fine with brew on Ubuntu. * Rearange Linux install sections --- README.md | 50 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 73cd111..041a37a 100644 --- a/README.md +++ b/README.md @@ -102,9 +102,10 @@ There are several installation options: - Homebrew (recommended) - MacPorts - Linux - - Manual installation/upgrades - - Arch Linux - Debian + - Arch Linux + - Homebrew + - Manual installation ### Kubectl Plugins (macOS and Linux) @@ -141,6 +142,35 @@ If you use [MacPorts](https://www.macports.org) you can install like this: ### Linux +#### Debian + +Available as a Debian package for [Debian Buster (testing)](https://packages.debian.org/buster/kubectx), [Sid (unstable)](https://packages.debian.org/sid/kubectx) (_note: if you are unfamiliar with Debian release process and how to enable testing/unstable repos, check the [Debian Wiki](https://wiki.debian.org/DebianReleases)_): + +``` bash +sudo apt install kubectx +``` + +#### Arch Linux + +Available as official Arch Linux package. Install it via: + +```bash +sudo pacman -S kubectx +``` + +#### Homebrew + +:confetti_ball: If you use [Homebrew](https://brew.sh/) you can install like this: + + brew install kubectx + +This command will set up bash/zsh/fish completion scripts automatically. + +- If you like to add context/namespace info to your shell prompt (`$PS1`), + I recommend trying out [kube-ps1](https://github.com/jonmosco/kube-ps1). + +#### Manual + Since `kubectx`/`kubens` are written in Bash, you should be able to install them to any POSIX environment that has Bash installed. @@ -191,22 +221,6 @@ sudo ln -s /opt/kubectx/kubectx /usr/local/bin/kubectx sudo ln -s /opt/kubectx/kubens /usr/local/bin/kubens ``` -#### Arch Linux - -Available as official Arch Linux package. Install it via: - -```bash -sudo pacman -S kubectx -``` - -#### Debian - -Available as a Debian package for [Debian Buster (testing)](https://packages.debian.org/buster/kubectx), [Sid (unstable)](https://packages.debian.org/sid/kubectx) (_note: if you are unfamiliar with Debian release process and how to enable testing/unstable repos, check the [Debian Wiki](https://wiki.debian.org/DebianReleases)_): - -``` bash -sudo apt install kubectx -``` - ----- ### Interactive mode