diff --git a/bash/.config/bash/prompt b/bash/.config/bash/prompt index d036c88..42970f5 100644 --- a/bash/.config/bash/prompt +++ b/bash/.config/bash/prompt @@ -7,6 +7,9 @@ # Heavily inspired by @necolas’s prompt: https://github.com/necolas/dotfiles # iTerm → Profiles → Text → use 13pt Monaco with 1.1 vertical spacing. +# If not running interactively, don't do anything +[[ $- != *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