mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-25 14:44:39 +02:00
docs: update README and autocomplete docs (#1699)
* formatting * update autocomplete
This commit is contained in:
parent
40087d1203
commit
a90490fe83
42
README.md
42
README.md
@ -2,7 +2,7 @@
|
|||||||
<h1>bottom (btm)</h1>
|
<h1>bottom (btm)</h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
A customizable cross-platform graphical process/system monitor for the terminal.<br />Supports Linux, macOS, and Windows. Inspired by <a href=https://github.com/aksakalli/gtop>gtop</a>, <a href=https://github.com/xxxserxxx/gotop>gotop</a>, and <a href=https://github.com/htop-dev/htop/>htop</a>.
|
A customizable cross-platform graphical process/system monitor for the terminal.<br />Supports Linux, macOS, and Windows. Inspired by <a href=https://github.com/aksakalli/gtop>gtop</a>, <a href=https://github.com/xxxserxxx/gotop>gotop</a>, and <a href=https://github.com/htop-dev/htop>htop</a>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
[<img src="https://img.shields.io/github/actions/workflow/status/ClementTsang/bottom/ci.yml?branch=main&style=flat-square&logo=github" alt="CI status">](https://github.com/ClementTsang/bottom/actions?query=branch%main)
|
[<img src="https://img.shields.io/github/actions/workflow/status/ClementTsang/bottom/ci.yml?branch=main&style=flat-square&logo=github" alt="CI status">](https://github.com/ClementTsang/bottom/actions?query=branch%main)
|
||||||
@ -154,7 +154,7 @@ cargo +stable install bottom --locked
|
|||||||
cargo install bottom
|
cargo install bottom
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternatively, if you can use `cargo install` using the repo as the source.
|
Alternatively, you can use `cargo install` using the repo as the source.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# You might need to update the stable version of Rust first.
|
# You might need to update the stable version of Rust first.
|
||||||
@ -174,8 +174,8 @@ cargo install --path . --locked
|
|||||||
# Option 3 - Install using cargo with the repo as the source
|
# Option 3 - Install using cargo with the repo as the source
|
||||||
cargo install --git https://github.com/ClementTsang/bottom --locked
|
cargo install --git https://github.com/ClementTsang/bottom --locked
|
||||||
|
|
||||||
# You can also pass in the target-cpu=native flag for
|
# You can also pass in the target-cpu=native flag to try to
|
||||||
# better CPU-specific optimizations. For example:
|
# use better CPU-specific optimizations. For example:
|
||||||
RUSTFLAGS="-C target-cpu=native" cargo install --path . --locked
|
RUSTFLAGS="-C target-cpu=native" cargo install --path . --locked
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -379,7 +379,7 @@ and installing via the `.msi` file.
|
|||||||
|
|
||||||
### Conda
|
### Conda
|
||||||
|
|
||||||
You can install using `conda` with [this conda-smithy repository](https://github.com/conda-forge/bottom-feedstock):
|
You can install bottom using `conda` with [this conda-smithy repository](https://github.com/conda-forge/bottom-feedstock):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Add the channel
|
# Add the channel
|
||||||
@ -407,37 +407,40 @@ or by installing to your system following the procedures for installing binaries
|
|||||||
|
|
||||||
#### Auto-completion
|
#### Auto-completion
|
||||||
|
|
||||||
The release binaries are packaged with shell auto-completion files for bash, fish, zsh, and Powershell. To install them:
|
The release binaries in [the releases page](https://github.com/ClementTsang/bottom/releases) are packaged with
|
||||||
|
shell auto-completion files for Bash, Zsh, fish, Powershell, Elvish, Fig, and Nushell. To install them:
|
||||||
|
|
||||||
- For bash, move `btm.bash` to `$XDG_CONFIG_HOME/bash_completion or /etc/bash_completion.d/`.
|
- For Bash, move `btm.bash` to `$XDG_CONFIG_HOME/bash_completion or /etc/bash_completion.d/`.
|
||||||
|
- For Zsh, move `_btm` to one of your `$fpath` directories.
|
||||||
- For fish, move `btm.fish` to `$HOME/.config/fish/completions/`.
|
- 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)>).
|
||||||
- For PowerShell, add `_btm.ps1` to your PowerShell
|
- For Elvish, the completion file is `btm.elv`.
|
||||||
[profile](<https://docs.microsoft.com/en-us/previous-versions//bb613488(v=vs.85)>).
|
- For Fig, the completion file is `btm.ts`.
|
||||||
|
- For Nushell, source `btm.nu`.
|
||||||
|
|
||||||
The individual auto-completion files are also included in the stable/nightly releases as `completion.tar.gz`.
|
The individual auto-completion files are also included in the stable/nightly releases as `completion.tar.gz` if needed.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
You can run bottom using `btm`.
|
You can run bottom using `btm`.
|
||||||
|
|
||||||
- For help on flags, use `btm -h` for a quick overview or `btm --help` for more details.
|
- For help on flags, use `btm -h` for a quick overview or `btm --help` for more details.
|
||||||
- For info on key and mouse bindings, press `?` inside bottom or refer to the [documentation](https://clementtsang.github.io/bottom/nightly/).
|
- For info on key and mouse bindings, press `?` inside bottom or refer to the [documentation page](https://clementtsang.github.io/bottom/nightly/).
|
||||||
|
|
||||||
You can find more information on usage in the [documentation](https://clementtsang.github.io/bottom/nightly/).
|
You can find more information on usage in the [documentation](https://clementtsang.github.io/bottom/nightly/).
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
bottom accepts a number of command-line arguments to change the behaviour of the application as desired. Additionally, bottom will automatically
|
bottom accepts a number of command-line arguments to change the behaviour of the application as desired.
|
||||||
generate a configuration file on the first launch, which one can change as appropriate.
|
Additionally, bottom will automatically generate a configuration file on the first launch, which can be changed.
|
||||||
|
|
||||||
More details on configuration can be found [in the documentation](https://clementtsang.github.io/bottom/nightly/configuration/config-file/).
|
More details on configuration can be found [in the documentation](https://clementtsang.github.io/bottom/nightly/configuration/config-file/).
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
If some things aren't working, give the [troubleshooting page](https://clementtsang.github.io/bottom/nightly/troubleshooting) a look.
|
If some things aren't working, give the [troubleshooting page](https://clementtsang.github.io/bottom/nightly/troubleshooting)
|
||||||
If things still aren't working, then consider opening [a question](https://github.com/ClementTsang/bottom/discussions)
|
a look. If things still aren't working, then consider asking [a question](https://github.com/ClementTsang/bottom/discussions)
|
||||||
or filing a [bug report](https://github.com/ClementTsang/bottom/issues/new/choose).
|
or filing a [bug report](https://github.com/ClementTsang/bottom/issues/new/choose) if you think it's a bug.
|
||||||
|
|
||||||
## Contribution
|
## Contribution
|
||||||
|
|
||||||
@ -551,8 +554,9 @@ Thanks to all contributors:
|
|||||||
- This project is very much inspired by [gotop](https://github.com/xxxserxxx/gotop),
|
- This project is very much inspired by [gotop](https://github.com/xxxserxxx/gotop),
|
||||||
[gtop](https://github.com/aksakalli/gtop), and [htop](https://github.com/htop-dev/htop/).
|
[gtop](https://github.com/aksakalli/gtop), and [htop](https://github.com/htop-dev/htop/).
|
||||||
|
|
||||||
- This application was written with [many](https://github.com/ClementTsang/bottom/blob/main/Cargo.toml), [_many_ libraries](https://github.com/ClementTsang/bottom/blob/main/Cargo.lock), as well as many services and programs, all built on top of the
|
- This application was written with [many](https://github.com/ClementTsang/bottom/blob/main/Cargo.toml),
|
||||||
work of many talented people. bottom would not exist without all of this.
|
[_many_ libraries](https://github.com/ClementTsang/bottom/blob/main/Cargo.lock), as well as many services and
|
||||||
|
programs, all built on top of the work of many talented people. bottom would not exist without all of this.
|
||||||
|
|
||||||
- And of course, thank you again to all contributors and package maintainers!
|
- And of course, thank you again to all contributors and package maintainers!
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ The command to run bottom is `btm`.
|
|||||||
|
|
||||||
You can refer to the [usage](usage/general-usage.md) pages for more details on using bottom (e.g. keybinds, some features, a general overview of what each widget does).
|
You can refer to the [usage](usage/general-usage.md) pages for more details on using bottom (e.g. keybinds, some features, a general overview of what each widget does).
|
||||||
|
|
||||||
To configure bottom (e.g. how it behaves, how it looks, etc.) refer to the [command-line options page](configuration/command-line-options.md) for temporary settings, or [the config file page](configuration/config-file) for more permanent settings.
|
To configure bottom (e.g. how it behaves, how it looks, etc.) refer to the [command-line options page](configuration/command-line-options.md) for temporary settings, or [the config file page](configuration/config-file/index.md) for more permanent settings.
|
||||||
|
|
||||||
## Contribution
|
## Contribution
|
||||||
|
|
||||||
|
14
docs/content/usage/autocomplete.md
Normal file
14
docs/content/usage/autocomplete.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Auto-Complete
|
||||||
|
|
||||||
|
The release binaries in [the releases page](https://github.com/ClementTsang/bottom/releases) are packaged with
|
||||||
|
shell auto-completion files for Bash, Zsh, fish, Powershell, Elvish, Fig, and Nushell. To install them:
|
||||||
|
|
||||||
|
- For Bash, move `btm.bash` to `$XDG_CONFIG_HOME/bash_completion or /etc/bash_completion.d/`.
|
||||||
|
- For Zsh, move `_btm` to one of your `$fpath` directories.
|
||||||
|
- For fish, move `btm.fish` to `$HOME/.config/fish/completions/`.
|
||||||
|
- For PowerShell, add `_btm.ps1` to your PowerShell [profile](<https://docs.microsoft.com/en-us/previous-versions//bb613488(v=vs.85)>).
|
||||||
|
- For Elvish, the completion file is `btm.elv`.
|
||||||
|
- For Fig, the completion file is `btm.ts`.
|
||||||
|
- For Nushell, source `btm.nu`.
|
||||||
|
|
||||||
|
The individual auto-completion files are also included in the stable/nightly releases as `completion.tar.gz` if needed.
|
@ -161,6 +161,7 @@ nav:
|
|||||||
- "Disk Widget": usage/widgets/disk.md
|
- "Disk Widget": usage/widgets/disk.md
|
||||||
- "Temperature Widget": usage/widgets/temperature.md
|
- "Temperature Widget": usage/widgets/temperature.md
|
||||||
- "Battery Widget": usage/widgets/battery.md
|
- "Battery Widget": usage/widgets/battery.md
|
||||||
|
- "Auto-Complete": usage/autocomplete.md
|
||||||
- "Configuration":
|
- "Configuration":
|
||||||
- "Command-line Options": configuration/command-line-options.md
|
- "Command-line Options": configuration/command-line-options.md
|
||||||
- "Config File":
|
- "Config File":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user