This repository has been archived on 2024-05-02. You can view files and clone it, but cannot push or open issues/pull-requests.
zsh-theme-min-percent/readme.org

32 lines
1.6 KiB
Org Mode
Raw Permalink Normal View History

2023-05-13 09:36:53 +00:00
#+TITLE: min-percent zsh theme - a minimalist zsh theme with a % or # sign as the prompt terminator
* Description
2023-05-13 09:46:09 +00:00
Minimalist zsh theme with a *%* or *#* sign as the prompt terminator.
2023-05-13 09:36:53 +00:00
Below is a screen shot demonstrating all of the possible prompt states (excluding when running as root user, where the „%” at the end of the prompt changes to „#”).
[[./screen-shot.png]]
* Prior art
- The prompt is based on [[https://github.com/tobyjamesthomas/pi][pi.zsh-theme]] by [[https://github.com/tobyjamesthomas][Toby Thomas]].
- the =get_pwd()= function is a modified version of one by [[https://github.com/shashankmehta][Shashank Mehta]].
* Installation instructions
** Requirements
Error indicator is shown using a unicode emoji character - it was tested with Noto Color Emoji font. Git repository symbol uses Powerline glyph (0xe0a0) - make sure your monospace font can display it or change the character to your liking in the source.
2023-05-13 09:46:09 +00:00
** Using [[https://github.com/zplug/zplug][zplug]]
2023-05-13 09:36:53 +00:00
- Clone the repository to chosen location (assuming =~/Src/zsh-theme-min-percent=)
- Add zplug directive to load theme:
#+begin_src shell
zplug "~/Src/zsh-theme-min-percent", use:"min-percent.zsh-theme", from:local, as:theme
2023-05-13 09:36:53 +00:00
#+end_src
2023-05-13 09:46:09 +00:00
** Using [[https://ohmyz.sh/][oh-my-zsh]]
2023-05-13 09:36:53 +00:00
- Clone the repository to chosen location (assuming =~/Src/zsh-theme-min-percent=)
- Copy theme file so Oh-My-ZSH can find it:
#+begin_src shell
cp ~/Src/zsh-theme-min-percen/min-percent.zsh-theme ~/.oh-my-zsh/custom/themes/
2023-05-13 09:36:53 +00:00
#+end_src
- Set theme in your =.zshrc=, before sourcing Oh-My-ZSH:
#+begin_src shell
ZSH_THEME=min-percent
2023-05-13 09:36:53 +00:00
#+end_src