diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2020-08-31 17:50:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-31 17:50:21 -0400 |
commit | 34314112154a42f7c1d4d822f94e478b55dbe9b6 (patch) | |
tree | 3a063e7d28093ab01c1e3e1b2da3e7442b7b72c9 /README.md | |
parent | c6a20a14201c46441f82938adf6f3f4bbd7441a8 (diff) |
other: Add autocomplete file generation (#213)
Adds shell completion generation as part of the build, as well as tweaking install scripts/templates/CI to use them.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -20,6 +20,7 @@ A cross-platform graphical process/system monitor with a customizable interface - [Homebrew](#homebrew) - [Scoop](#scoop) - [Chocolatey](#chocolatey) + - [Auto-completion](#auto-completion) - [Usage](#usage) - [Flags](#flags) - [Options](#options) @@ -86,6 +87,9 @@ tar -xzvf 0.4.7.tar.gz cargo install --path . ``` +Or, you can just download the binary from the [latest release](https://github.com/ClementTsang/bottom/releases/latest) and install/use it +in whatever way you want. + ### Cargo ```bash @@ -152,6 +156,19 @@ choco install bottom choco install bottom --version=0.4.7 ``` +### Auto-completion + +Shell completions are included in binary releases, and are generated in the same directory as the +binary if bottom is manually built. + +- For bash, move `btm.bash` to `$XDG_CONFIG_HOME/bash_completion or /etc/bash_completion.d/`. +- For fish, move `btm.fish` to `$HOME/.config/fish/completions/`. +- For zsh, move `_btm` to one of your `$fpath` directories. +- For PowerShell, add `. _btm.ps1` to your PowerShell + [profile](<https://docs.microsoft.com/en-us/previous-versions//bb613488(v=vs.85)>). + +Some install scripts (i.e. AUR) will automatically do this for you. + ## Usage Run using `btm`. |