Skip to content

Commit

Permalink
docs(README): add notes to set alias for pipx run nvitop
Browse files Browse the repository at this point in the history
  • Loading branch information
XuehaiPan committed Jul 12, 2024
1 parent 56940d1 commit 35ce4ad
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,24 @@ Run `bash install-nvidia-driver.sh --help` for more information.
pipx run nvitop
```

You can also set this command as an alias in your shell startup file, e.g.:

```bash
# For Bash
echo 'alias nvitop="pipx run nvitop"' >> ~/.bashrc

# For Zsh
echo 'alias nvitop="pipx run nvitop"' >> ~/.zshrc

# For Fish
mkdir -p ~/.config/fish
echo 'alias nvitop="pipx run nvitop"' >> ~/.config/fish/config.fish

# For PowerShell
New-Item -Path (Split-Path -Parent -Path $PROFILE.CurrentUserAllHosts) -ItemType Directory -Force
'Function nvitop { pipx run nvitop @Args }' >> $PROFILE.CurrentUserAllHosts
```

Install from PyPI ([![PyPI](https://img.shields.io/pypi/v/nvitop?label=pypi&logo=pypi)](https://pypi.org/project/nvitop)):

```bash
Expand Down

0 comments on commit 35ce4ad

Please sign in to comment.