jbmorley / configure-prompt

Minimal prompt for Zsh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

configure-prompt

Minimal prompt for Zsh

Screenshot of terminal using configure-prompt

Features

  • current working directory
  • active branch
  • hostname
  • timestamp

Usage

  1. Clone the repository:

    mkdir -p ~/Projects
    cd ~/Projects
    git clone git@github.com:jbmorley/configure-prompt.git
  2. Add the following lines to ~/.zshrc:

    FPATH="$FPATH:$HOME/Projects/configure-prompt"
    autoload configure-prompt
    configure-prompt

    You can optionally provide a custom machine name by specifying it as the first argument to configure-prompt:

    configure-prompt "The Comedian"

The above instructions assume you want to clone the project to ~/Projects/configure-prompt, which is where I like to keep all my projects and git checkouts. Feel free to change this path if you'd like to place it somewhere else.

About

Minimal prompt for Zsh

License:MIT License