Minimal prompt for Zsh
- current working directory
- active branch
- hostname
- timestamp
-
Clone the repository:
mkdir -p ~/Projects cd ~/Projects git clone git@github.com:jbmorley/configure-prompt.git
-
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.