add installation instructions for alpine; related: #1828

pull/1889/head
Roman Perepelitsa 3 years ago
parent a3f6859a8d
commit 5c7ad753a2

@ -411,6 +411,7 @@ Powerlevel10k.
- [Zinit](#zinit) - [Zinit](#zinit)
- [Homebrew](#homebrew) - [Homebrew](#homebrew)
- [Arch Linux](#arch-linux) - [Arch Linux](#arch-linux)
- [Alpine Linux](#arch-linux)
### Manual ### Manual
@ -506,6 +507,13 @@ There is also [zsh-theme-powerlevel10k](
Historically, [it has been breaking often and for extended periods of time]( Historically, [it has been breaking often and for extended periods of time](
https://github.com/romkatv/powerlevel10k/pull/786). **Do not use it.** https://github.com/romkatv/powerlevel10k/pull/786). **Do not use it.**
### Alpine Linux
```zsh
apk add zsh-theme-powerlevel10k
echo 'source /usr/share/zsh/plugins/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
```
## Configuration ## Configuration
- [For new users](#for-new-users) - [For new users](#for-new-users)
@ -756,7 +764,7 @@ Powerlevel10k is released under the
The command to update Powerlevel10k depends on how it was installed. The command to update Powerlevel10k depends on how it was installed.
| Installation | Update command | | Installation | Update command |
|---------------------------|-------------------------------------------------------------| |-------------------------------|-------------------------------------------------------------|
| [Manual](#manual) | `git -C ~/powerlevel10k pull` | | [Manual](#manual) | `git -C ~/powerlevel10k pull` |
| [Oh My Zsh](#oh-my-zsh) | `git -C ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k pull` | | [Oh My Zsh](#oh-my-zsh) | `git -C ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k pull` |
| [Prezto](#prezto) | `zprezto-update` | | [Prezto](#prezto) | `zprezto-update` |
@ -768,6 +776,7 @@ The command to update Powerlevel10k depends on how it was installed.
| [Zinit](#zinit) | `zinit update` | | [Zinit](#zinit) | `zinit update` |
| [Homebrew](#homebrew) | `brew update && brew upgrade` | | [Homebrew](#homebrew) | `brew update && brew upgrade` |
| [Arch Linux](#arch-linux) | `yay -S --noconfirm zsh-theme-powerlevel10k-git` | | [Arch Linux](#arch-linux) | `yay -S --noconfirm zsh-theme-powerlevel10k-git` |
| [Alpine Linux](#alpine-linux) | `apk update && apk upgrade` |
**IMPORTANT**: Restart Zsh after updating Powerlevel10k. [Do not use `source ~/.zshrc`]( **IMPORTANT**: Restart Zsh after updating Powerlevel10k. [Do not use `source ~/.zshrc`](
#weird-things-happen-after-typing-source-zshrc). #weird-things-happen-after-typing-source-zshrc).
@ -806,7 +815,7 @@ The command to update Powerlevel10k depends on how it was installed.
Refer to the [installation instructions](#installation) if you need a reminder. Refer to the [installation instructions](#installation) if you need a reminder.
| Installation | Uninstall command | | Installation | Uninstall command |
|---------------------------|------------------------------------------------------------------| |-------------------------------|------------------------------------------------------------------|
| [Manual](#manual) | `rm -rf ~/powerlevel10k` | | [Manual](#manual) | `rm -rf ~/powerlevel10k` |
| [Oh My Zsh](#oh-my-zsh) | `rm -rf -- ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k` | | [Oh My Zsh](#oh-my-zsh) | `rm -rf -- ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k` |
| [Prezto](#prezto) | n/a | | [Prezto](#prezto) | n/a |
@ -818,6 +827,7 @@ The command to update Powerlevel10k depends on how it was installed.
| [Zinit](#zinit) | `zinit delete romkatv/powerlevel10k` | | [Zinit](#zinit) | `zinit delete romkatv/powerlevel10k` |
| [Homebrew](#homebrew) | `brew uninstall powerlevel10k; brew untap romkatv/powerlevel10k` | | [Homebrew](#homebrew) | `brew uninstall powerlevel10k; brew untap romkatv/powerlevel10k` |
| [Arch Linux](#arch-linux) | `yay -R --noconfirm zsh-theme-powerlevel10k-git` | | [Arch Linux](#arch-linux) | `yay -R --noconfirm zsh-theme-powerlevel10k-git` |
| [Alpine Linux](#alpine-linux) | `apk del zsh-theme-powerlevel10k` |
6. Restart Zsh. [Do not use `source ~/.zshrc`](#weird-things-happen-after-typing-source-zshrc). 6. Restart Zsh. [Do not use `source ~/.zshrc`](#weird-things-happen-after-typing-source-zshrc).
7. Delete Powerlevel10k cache files. 7. Delete Powerlevel10k cache files.
```zsh ```zsh

Loading…
Cancel
Save