From 9b3439e6ddc98a47085dc2fd64d03a7cb18cab77 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 22 Dec 2014 01:07:26 +0100 Subject: shell: do not issue errors if we cannot source the git-prompt file Signed-off-by: Olivier Gayot --- global/etc/zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'global/etc') 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 -- cgit v1.2.3