Code Monkey home page Code Monkey logo

prezto-clean-prompt's Introduction

prezto-clean-prompt

A two line prezto prompt that displays the current nvm node version and, when available, git information about the repo that you are currently working with.

Clean prompt

Shown using Operator Mono with Sauce Code Pro Nerd Font for non-ASCII characters

Features

  • NodeJS version
  • Git branch
  • Git dirty changes
  • Git commits behind
  • Git commits ahead

This prompt takes advantage of symbols provided with Nerd fonts (os icons and nodejs logo).

It looks best with a duotone color scheme. I've included an iTerm theme in the repo to make things easier on setting ANSI colors. If you use another terminal app, I'll list out the colors used in the above iTerm color theme.

Installation

  1. Update your color theme. You can use the provided iTerm color theme or modify your terminal with the ANSI colors below

  2. Head over to https://github.com/ryanoasis/nerd-fonts and install your favorite nerd font (I use Sauce Code Pro)

    You need one of these to get the arrow separators, OS icons, and NodeJS logo

  3. Clone to your external prezto prompts

git clone https://github.com/cdonohue/prezto-clean-prompt.git ~/.zprezto/modules/prompt/external/clean
  1. Link the prompt
ln -s ~/.zprezto/modules/prompt/external/clean/prompt_clean_setup ~/.zprezto/modules/prompt/functions
  1. Verify that you have the git module loading in your .zpreztorc file

zpreztorc-git

  1. Update your .zpreztorc to use the clean prompt

zpreztorc-prompt

Color configuration

Foreground: #8686cb

Background: #24242e

Ansi color Hex color
Black #49495a
Red #fe7734
Green #8686cb
Yellow #fe7734
Blue #bebeef
Magenta #ff8b42
Cyan #5b5b7b
White #d9d9e2
BrightBlack #fe7734
BrightRed #fe7734
BrightGreen #bebeef
BrightYellow #bf7c57
BrightBlue #bebeef
BrightMagenta #be7b55
BrightCyan #bdebe4
BrightWhite #f2f2f2

License

MIT License 2017 © Chad Donohue

prezto-clean-prompt's People

Contributors

cdonohue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dastagg

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.