-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: corvofeng <corvofeng@gmail.com>
- Loading branch information
Showing
9 changed files
with
102 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,30 @@ | ||
|
||
## Installation | ||
|
||
### MacOS | ||
|
||
```bash | ||
# MacOS | ||
brew install corvofeng/tap/kubemux | ||
``` | ||
|
||
### Linux | ||
|
||
# Linux -- using bin: https://github.com/marcosnils/bin | ||
> Using bin: https://github.com/marcosnils/bin | ||
```bash | ||
bin install https://github.com/corvofeng/kubemux ~/usr/bin | ||
# bin ls | ||
# Path Version URL Status | ||
# ~/usr/bin/kubemux v1.1.2 https://github.com/corvofeng/kubemux/releases/tag/v1.1.2 OK | ||
``` | ||
|
||
# Linux -- using binary | ||
> Using binary | ||
```bash | ||
cd /tmp | ||
rm kubemux_linux_amd64.tar.gz | ||
wget https://github.com/corvofeng/kubemux/releases/latest/download/kubemux_linux_amd64.tar.gz | ||
tar -zxvf kubemux_linux_amd64.tar.gz | ||
sudo install -v kubemux /usr/local/bin | ||
``` | ||
|
||
|
||
## Usage | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# How to use kubemux | ||
|
||
|
||
## kubeconfig | ||
|
||
<script async src="https://asciinema.org/a/9lB50c5mndYfl0jBZLaG8ymdg.js" id="asciicast-658052" async="true"></script> | ||
|
||
```bash | ||
ls ~/.kube | ||
# pve-kube.config xxx | ||
|
||
kubemux kube --kube pve-kube.config | ||
|
||
# I suggest you add the completion support | ||
# source <(kubemux completion bash) | ||
# source <(kubemux completion zsh) | ||
# or you can add the command into the .bashrc or .zshrc. | ||
kubemux kube --kube <tab> | ||
``` | ||
|
||
|
||
## tmuxinator | ||
|
||
<script src="https://asciinema.org/a/6kYCveJwVr4Sggj8QhqlsCKLm.js" id="asciicast-658053" async="true"></script> | ||
|
||
```bash | ||
mkdir ~/.tmuxinator | ||
|
||
echo ' | ||
name: kubemux | ||
root: "~/" | ||
windows: | ||
- p1: | ||
- ls | ||
- pwd | ||
- p2: | ||
- pwd | ||
- echo "hello world" | ||
- p3: htop | ||
' > ~/.tmuxinator/kubemux.yml | ||
|
||
kubemux -p kubemux | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +0,0 @@ | ||
### kubeconfig | ||
|
||
```bash | ||
ls ~/.kube | ||
# pve-kube.config xxx | ||
|
||
kubemux kube --kube pve-kube.config | ||
|
||
# I suggest you add the completion support | ||
# source <(kubemux completion bash) | ||
# source <(kubemux completion zsh) | ||
# or you can add the command into the .bashrc or .zshrc. | ||
kubemux kube --kube <tab> | ||
``` | ||
|
||
<script async src="https://asciinema.org/a/9lB50c5mndYfl0jBZLaG8ymdg.js" id="asciicast-658052" async="true"></script> | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +0,0 @@ | ||
### tmuxinator | ||
|
||
<script src="https://asciinema.org/a/6kYCveJwVr4Sggj8QhqlsCKLm.js" id="asciicast-658053" async="true"></script> | ||
|
||
```bash | ||
mkdir ~/.tmuxinator | ||
|
||
echo ' | ||
name: kubemux | ||
root: "~/" | ||
windows: | ||
- p1: | ||
- ls | ||
- pwd | ||
- p2: | ||
- pwd | ||
- echo "hello world" | ||
- p3: htop | ||
' > ~/.tmuxinator/kubemux.yml | ||
|
||
kubemux -p kubemux | ||
``` | ||
|
||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters