From 82b043442428390ef86acb86804d02065a5ad03d Mon Sep 17 00:00:00 2001 From: techgaun Date: Thu, 30 Mar 2017 16:01:12 -0500 Subject: [PATCH] fix for non-interactive shell closes #2 --- .bash_prompt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bash_prompt b/.bash_prompt index 3ff63eb..9c765fb 100644 --- a/.bash_prompt +++ b/.bash_prompt @@ -5,6 +5,9 @@ # Heavily inspired by @necolas’s prompt: https://github.com/necolas/dotfiles # iTerm → Profiles → Text → use 13pt Monaco with 1.1 vertical spacing. +# don't set prompt for non-interactive shell +[[ $- != *i* ]] && return + if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then export TERM='gnome-256color'; elif infocmp xterm-256color >/dev/null 2>&1; then