Skip to content
Adrian Juszczak edited this page Sep 13, 2017 · 1 revision

Prompt

Vi mode

Current vi mode indicator is always indicated by for normal and > for insert

Sections:

  1. user - current $USER variable
  2. branch - current git branch if inside git repository
  3. cwd - truncated current working directory

Runtime configuration via environment variables

  • PS1_SHORT - is set to 1 then PS1 changes to just $
  • PS1_DIR_LIMIT - maximum of visible directories in current path (default to 3)
Clone this wiki locally