diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2014-12-22 01:07:26 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2014-12-22 01:07:26 +0100 |
commit | 9b3439e6ddc98a47085dc2fd64d03a7cb18cab77 (patch) | |
tree | 2c983b98dd1a7192cd20bc1631e56486a725b356 /global | |
parent | cb962a4a1fff1f11e1f3f56493b1c34ddd07c18e (diff) |
shell: do not issue errors if we cannot source the git-prompt file
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'global')
-rw-r--r-- | global/etc/zshrc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/global/etc/zshrc b/global/etc/zshrc index 0ad8dd3..19027aa 100644 --- a/global/etc/zshrc +++ b/global/etc/zshrc @@ -1,8 +1,9 @@ autoload -U colors && colors autoload -U compinit && compinit -source /usr/share/git/completion/git-prompt.sh - +if ! source /usr/share/git/completion/git-prompt.sh 2>/dev/null; then + function __git_ps1() { } +fi setopt NO_BG_NICE |