diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-31 11:43:26 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-31 11:43:26 -0300 |
commit | 4c30cdc7be59f697f424c4e11ef5a28055a5e7d7 (patch) | |
tree | e761f62c6acc84e00fb80c8faa22365736140646 | |
parent | 14534ec086877d9dcfaabc5ed4f54ac58c126eea (diff) | |
download | scripts-4c30cdc7be59f697f424c4e11ef5a28055a5e7d7.tar.gz scripts-4c30cdc7be59f697f424c4e11ef5a28055a5e7d7.tar.bz2 |
Source git completion if needed
-rw-r--r-- | prompt | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -42,4 +42,9 @@ function command_prompt() { PS2="${BOLD}>${OFF} " } +# Older systems doesn't source git completion by default +if ! type __git_ps1 &> /dev/null && [ -e "/etc/bash_completion.d/git" ]; then + source /etc/bash_completion.d/git +fi + PROMPT_COMMAND="command_prompt" |