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: description how to install krew on fish #187

Merged
merged 2 commits into from
May 25, 2019
Merged
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
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Read the [User Guide](./docs/USER_GUIDE.md) for detailed documentation.

**macOS and Linux:**

#### Bash and ZSH

1. Make sure that `git` is installed.
2. Run this command in your terminal to download and install `krew`:

Expand All @@ -59,6 +61,32 @@ Read the [User Guide](./docs/USER_GUIDE.md) for detailed documentation.

and restart your shell.

#### Fish

1. Make sure that `git` is installed.
2. Run this command in your terminal to download and install `krew`:

```fish
begin
set -x; cd "(mktemp -d)" &&
curl -fsSLO "https://storage.googleapis.com/krew/v0.2.1/krew.{tar.gz,yaml}" &&
tar zxvf krew.tar.gz &&
set KREWNAME krew-(uname | tr '[:upper:]' '[:lower:]')_amd64 &&
./$KREWNAME install \
--manifest=krew.yaml --archive=krew.tar.gz &&
set -e KREWNAME
end
```
3. Add `$HOME/.krew/bin` directory to your PATH environment variable. To do
this, update your `config.fish` file and append the following line:

```fish
set -gx PATH $PATH $HOME/.krew/bin
```

and restart your shell.


**Windows:**

1. Make sure `git` is installed on your system.
Expand Down