Skip to content

lewis6991/fancy-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Features

  • Provides a nice colourful prompt.
  • Gives you basic information about your git or svn checkout.
  • Supports bash, csh and tcsh.
  • Asynchronous! (zsh only)
  • Integrates with [gitstatus](https://github.com/romkatv/gitstatus] (zsh only)

Screenshot

img

Installation

Zsh

Requires mafredri/zsh-async.

Using zimfw

Add the following to your .zimrc:

zmodule romkatv/gitstatus  # optional
zmodule mafredri/zsh-async --name async
zmodule lewis6991/fancy-prompt

Then:

zimfw install

Manually

Add the following to your .zshrc:

source path/to/fancy_prompt/prompt.zsh

Bash

./install.sh

Add the following to your .bashrc:

export PROMPT_COMMAND=__prompt_command

function __prompt_command() {
    EXIT=$?
    PS1=`~/.prompt bash ${EXIT}`
}

Csh/Tcsh

./install.sh

Add the following to your .cshrc:

alias precmd 'set prompt="`~/.prompt csh $?`"'

Customisation

Timeout

FANCY_PROMPT_TIMEOUT=3

Timeout for commands fetching SCM updates.

Dynamic Width

FANCY_PROMPT_DYNAMIC_WIDTH=1

Shorten the prompt for narrow terminal windows.

Symbols

FANCY_PROMPT_USE_SYMBOLS=1

Use powerline symbols. See powerline/fonts.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages