Skip to content

j18e/shell-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shell Prompt

A lightning fast terminal prompt including detailed Git status info

Installation

sh -c $(curl -fsSL https://github.com/j18e/shell-prompt/raw/master/install.sh)

alternatively, if you have golang set up:

go get github.com/j18e/shell-prompt

Usage

Bash

Add the following to your .bashrc:

function _update_ps1() {
    PS1="$(shell-prompt -exit-code $?)"
}

PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"

ZSH

Add the following to your .zshrc (you should be using oh-my-zsh):

PROMPT='$(shell-prompt -exit-code $? -zsh)'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published