Skip to content

lewis6991/fancy-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Features

  • Provides a nice colourful prompt.
  • Gives you basic information about your git checkout.
  • Supports bash, csh and tcsh.
  • Asynchronous! (zsh only)
  • Rename Tmux windows to CWD
  • OSC133 Support

Screenshot

img

Installation

Zsh

Requires mafredri/zsh-async.

Using zimfw

Add the following to your .zimrc:

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() {
    local exit_code=$?
    PS1=$(~/.prompt bash $exit_code)
}

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.

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