Awesome
muslim
A simple minimal zsh prompt theme.
Features
- displays current working directory (sic!)
- changes terminal title to currrent working directory
- shows if current user is root (prompt symbol,
❯❯❯
for root,❯
else) - shows if latest command executed successfully (by color of prompt symbols
❯
) - displays username and host (optional, true for ssh shell by default)
- displays if current working directory is inside git repo
- displays in git repo:
- current branch (or commit hash in detached state)
- time since last commit (days, hours, minutes)
- if you need to pull (current state is behind remote repo state) with
⬇
- if you need to push (current state is ahead remote repo state) with
⬆
- if you have untracked files with
◼
- if you have added files with
✚
- if you have modified files with
✱
- if you have deleted files with
✖
- if you have renamed files with
➜
- if you have conflicts during merge with
!?
Installation
antigen
Add to your .zshrc
:
antigen theme nksoff/muslim muslim
zplug
Add to your .zshrc
:
zplug "nksoff/muslim"
zgen
Add to your .zshrc
:
zgen load nksoff/muslim muslim
antibody
Add to your .zshrc
:
antibody budle nksoff/muslim
oh-my-zsh
Clone repo, copy theme:
git clone https://github.com/nksoff/muslim
mkdir -p ~/.oh-my-zsh/custom/themes
cp muslim/muslim.zsh-theme ~/.oh-my-zsh/custom/themes
Add to your .zshrc
:
ZSH_THEME="muslim"
prezto
Clone repo, copy theme:
git clone https://github.com/nksoff/muslim ~/.zprezto/modules/prompt/external/muslim
ln -s ~/.zprezto/modules/prompt/external/muslim/muslim.zsh-theme ~/.zprezto/modules/prompt/functions/prompt_muslim_setup
Add to your .zpreztorc
:
zstyle ':prezto:module:prompt' theme 'muslim'
Manual
Surely, if you do not use any plugin managers, you know how to include custom theme.
git clone https://github.com/nksoff/muslim ~/.muslim
echo 'source ~/.muslim/muslim.zsh-theme' >> ~/.zshrc
Inspired by
- geometry theme by frmendes
- pure theme by sindresorhus
- sunrise theme from oh-my-zsh