diff --git a/powerlevel10k-notes.md b/powerlevel10k-notes.md new file mode 100644 index 0000000..5f8b946 --- /dev/null +++ b/powerlevel10k-notes.md @@ -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) \ No newline at end of file