Skip to content

Instantly share code, notes, and snippets.

@bugventure
Last active September 15, 2016 23:05
Show Gist options
  • Save bugventure/541e131995bb663a08d7 to your computer and use it in GitHub Desktop.
Save bugventure/541e131995bb663a08d7 to your computer and use it in GitHub Desktop.
cwd-only bash prompt with posh-git-sh
# https://github.com/lyze/posh-git-sh
# posh-git-sh (symbolic link from the posh-git-sh github repo is required first)
source ~/git-prompt.sh
# PROMPT_COMMAND='__posh_git_ps1 "\u@\h:\w" "\\\$ "'
PROMPT_COMMAND='__posh_git_ps1 "[\w]" "\\\$ "'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment