39
powerlevel10k-notes.md
Normal file
39
powerlevel10k-notes.md
Normal file
@@ -0,0 +1,39 @@
|
||||
# Install git prompt-lines
|
||||
|
||||
#howto #git
|
||||
|
||||
## Install powerlevel10k (.zsh prompt)
|
||||
|
||||
### First run
|
||||
|
||||
On the first run, Powerlevel10k configuration wizard will ask you a few questions and configure your prompt. If it doesn't trigger automatically, type `p10k configure`.
|
||||
You can further customize your prompt by editing ~/.p10k.zsh.
|
||||
|
||||
### Oh My Zsh
|
||||
|
||||
```shell
|
||||
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
|
||||
```
|
||||
|
||||
Set `ZSH_THEME=powerlevel10k/powerlevel10k` in your ~/.zshrc.
|
||||
|
||||
### Update p10k
|
||||
|
||||
| Installation | Update command |
|
||||
|--------------|----------------------------------------------|
|
||||
| Manual | git -C ~/powerlevel10k pull |
|
||||
| Oh My Zsh | git -C $ZSH_CUSTOM/themes/powerlevel10k pull |
|
||||
|
||||
## bash-git-prompt (bash prompt)
|
||||
|
||||
```shell
|
||||
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Reference
|
||||
|
||||
* [Github - A fast reimplementation of Powerlevel9k ZSH theme](https://github.com/romkatv/powerlevel10k#oh-my-zsh)
|
||||
* [My beautiful Linux development environment](https://dev.to/deepu105/my-beautiful-linux-development-environment-2afc)
|
||||
* [bash-git-prompt](https://github.com/magicmonty/bash-git-prompt)
|
||||
Reference in New Issue
Block a user