Skip to content

Commit

Permalink
fix for non-interactive shell closes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
techgaun committed Mar 30, 2017
1 parent 331dadd commit 82b0434
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bash_prompt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 82b0434

Please sign in to comment.