Skip to content
Luke Sampson edited this page Mar 1, 2014 · 9 revisions

Prompt variables are set either by pshazz itself, or by a plugin. So plugin variables are only available when that plugin is enabled in the current pshazz theme.

Pshazz variables

  • $dir: the name of the current working directory (without the base path)
  • $path: the full path of the current working directory, with the home directory displayed as ~
  • $user: the username of the current user
  • $hostname: the name of the host/computer

Need more variables? Create an issue to let me know.

Plugin variables

Plugin variables are prefixed with the name of the plugin.

Git plugin variables

These are only displayed when the working directory is inside a git repo.

  • $git_branch: the name of the current git branch
  • $git_dirty: displays an indicator if the git working tree has modifications. You can specify the indicator string displayed by setting a git.prompt_dirty string inside the theme file.
  • $git_lbracket: the left bracket around git info, e.g '['
  • $git_rbracket: the right bracket around git info, e.g ']'

lo

Clone this wiki locally