Skip to content

Instantly share code, notes, and snippets.

@phatsk
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phatsk/a6b8ee30eabda675b57f to your computer and use it in GitHub Desktop.
Save phatsk/a6b8ee30eabda675b57f to your computer and use it in GitHub Desktop.
## I'm using this in the agnoster theme - should work for any
## zsh theme
## Main prompt
build_prompt() {
RETVAL=$?
prompt_status
prompt_virtualenv
prompt_context
prompt_dir
# We check if the $PWD fstype is osxfusefs - if not,
# load the git/mercurial prompts
if [[ -z `df -T osxfusefs $PWD` ]]; then
prompt_git
prompt_hg
fi
prompt_end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment