Giter Site home page Giter Site logo

mnml-theme / prompt Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 0.0 58 KB

A minimal @z-shell prompt theme.

Home Page: https://zsh-manual.netlify.app/user-contributions#266-prompt-themes

License: MIT License

Shell 100.00%
prompt theme shell zsh mnml git-prompt git-workflow prompts terminal zsh-configuration zsh-plugin zsh-plugins zsh-prompt zsh-theme zsh-themes zshell zshrc minimal minimalist minimalistic

prompt's Introduction


A minimal Zshell prompt theme.

*Preview shows Dracula theme with JetBrains Mono Nerd font.

Compatible with .files.

Install

with Homebrew:

brew install mnml-theme/install/mnml-prompt

or brew bundle install[ --file] from Brewfile:

tap  "mnml-theme/install"
brew "mnml-prompt"

Then add to your startup files:

# ~/.zshrc
autoload -Uz promptinit
promptinit
prompt mnml

or simply export ZSH_THEME with ZDOTDIR:

# $ZDOTDIR/source/*.env
ZSH_THEME=mnml

Configuration

Environment variable Default value Description
PS1/PROMPT ZSH_PROMPT_SYMBOL Default left aligned prompt.
RPS1/RPROMPT vcs_info Additional right aligned prompt.
ZLE_RPROMPT_INDENT 0 Number of spaces indentation to the right of RPS1/RPROMPT.
ZSH_PROMPT_NEWLINE true Add a newline after each command.
ZSH_PROMPT_SYMBOL_COLOR default ANSI color of ZSH_PROMPT_SYMBOL.
ZSH_PROMPT_COLOR_ERROR red ANSI color of ZSH_PROMPT_SYMBOL_ERROR.
ZSH_PROMPT_COLOR_COMMENT 8 ANSI bright black by default.
ZSH_PROMPT_COLOR_JOBS ZSH_PROMPT_COLOR_COMMENT ANSI color of ZSH_PROMPT_SYMBOL_JOBS.
ZSH_PROMPT_COLOR_PWD ZSH_PROMPT_COLOR_COMMENT ANSI color of ZSH_PROMPT_PWD.
ZSH_PROMPT_COLOR_ADDED green ANSI color of ZSH_PROMPT_SYMBOL_ADDED in vcs_info
ZSH_PROMPT_COLOR_UNTRACKED ZSH_PROMPT_COLOR_ADDED ANSI color of ZSH_PROMPT_SYMBOL_UNTRACKED in vcs_info.
ZSH_PROMPT_COLOR_MODIFIED yellow ANSI color of ZSH_PROMPT_SYMBOL_MODIFIED in vcs_info.
ZSH_PROMPT_COLOR_RENAMED blue ANSI color of ZSH_PROMPT_SYMBOL_RENAMED in vcs_info.
ZSH_PROMPT_COLOR_DELETED ZSH_PROMPT_COLOR_ERROR ANSI color of ZSH_PROMPT_SYMBOL_DELETED in vcs_info.
ZSH_PROMPT_COLOR_STASHED ZSH_PROMPT_COLOR_JOBS ANSI color of ZSH_PROMPT_SYMBOL_STASHED in vcs_info.
ZSH_PROMPT_COLOR_REVISION ZSH_PROMPT_COLOR_STASHED ANSI color of ZSH_PROMPT_SYMBOL_REVISION in vcs_info.
ZSH_PROMPT_COLOR_BRANCH ZSH_PROMPT_COLOR_REVISION ANSI color of ZSH_PROMPT_SYMBOL_BRANCH in vcs_info.
ZSH_PROMPT_SYMBOL > Main PS1/PROMPT symbol.
ZSH_PROMPT_SYMBOL_JOBS Prefix ZSH_PROMPT_SYMBOL if any jobs running in the backround.
ZSH_PROMPT_SYMBOL_ERROR Prefix ZSH_PROMPT_SYMBOL if last command resulted in an error.
ZSH_PROMPT_SYMBOL_REVISION Prefix ZSH_PROMPT_REVISION with commit symbol
ZSH_PROMPT_SYMBOL_BRANCH Prefix vcs_info with branch symbol.
ZSH_PROMPT_SYMBOL_UNTRACKED * Display if any untracked changes in vcs_info.
ZSH_PROMPT_SYMBOL_ADDED + Display if any added changes in vcs_info.
ZSH_PROMPT_SYMBOL_RENAMED ~ Display if any renamed changes in vcs_info.
ZSH_PROMPT_SYMBOL_MODIFIED ZSH_PROMPT_SYMBOL_ADDED Display if any modified changes in vcs_info.
ZSH_PROMPT_SYMBOL_DELETED - Display if any deleted changes in vcs_info.
ZSH_PROMPT_SYMBOL_STASHED ZSH_PROMPT_SYMBOL_JOBS Display if any stashes in vcs_info.
ZSH_PROMPT_SYMBOL_FETCH Prefix remote vcs_info with fetch symbol, such as sync.
ZSH_PROMPT_SYMBOL_BEHIND Display if any commits behind the remote in vcs_info
ZSH_PROMPT_SYMBOL_AHEAD Display if any commits ahead of the remote in vcs_info.
ZSH_PROMPT_SYMBOL_FORMAT_PREFIX Prefix ZSH_PROMPT_FORMAT with symbol, such as [.
ZSH_PROMPT_SYMBOL_FORMAT_SUFFIX Append ZSH_PROMPT_FORMAT with symbol, such as ].
ZSH_PROMPT_FORMAT %b%u%c%m Format of vcs_info. See below table for reference.
ZSH_PROMPT_PWD false Display the Present Working Directory (PWD).
ZSH_PROMPT_COUNT_JOBS false Display number of jobs running in the background.
ZSH_PROMPT_REVISION false Display latest commit revision hash in vcs_info.
ZSH_PROMPT_REMOTE false Display remote branch in vcs_info.
ZSH_PROMPT_COUNT_FETCH true Display number of commits ahead/behind the remote in vcs_info.
ZSH_PROMPT_COUNT_STASHED false Display number of stashes in vcs_info.
ZSH_PROMPT_COUNT_CHANGED false Prefix each change in vcs_info with number files changed.

vcs_info reference:

formats info
%b branch
%u unstaged
%c staged
%m stashed
%7.7i Revision

License

MIT © Daniel Bayley

prompt's People

Contributors

danielbayley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.