Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
applejag committed Oct 7, 2023
1 parent 18c1d29 commit 5ac500c
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ sudo snap install klock --edge
> [!IMPORTANT]
> The snap's default aliases are still in review, so for now you must use:
>
> ```console
> $ klock.kubectl-klock pods
> ```sh
> klock.kubectl-klock pods
> ```
### Nix
Expand Down Expand Up @@ -145,16 +145,13 @@ There's also some hotkeys available:

## Completion

To get completion when writing `kubectl klock`, you need to create an
executable file that `kubectl` can call to get completions, named
`kubectl_complete-klock`. Make sure to add it to your `PATH`.
To get completion when writing `kubectl klock`, you need to add
[`./bin/kubectl_complete-klock`](./bin/kubectl_complete-klock)
to your `PATH`.

For example:

```sh
cat <<'END' | sudo tee /usr/local/bin/kubectl_complete-klock
#!/usr/bin/env bash
kubectl-klock __complete "$@"
END
sudo curl https://github.com/applejag/kubectl-klock/raw/main/bin/kubectl_complete-klock -o /usr/local/bin/kubectl_complete-klock
sudo chmod +x /usr/local/bin/kubectl_complete-klock
```

0 comments on commit 5ac500c

Please sign in to comment.