From 78a9fc3f8c0bc6a7bacefd6434f7a1b6417245b0 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Fri, 3 Jan 2020 18:54:39 +0100 Subject: [PATCH] Simplify bash prompt when terminal is dumb --- bashrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 85598ae..bbe5994 100644 --- a/bashrc +++ b/bashrc @@ -34,7 +34,11 @@ bind '"\en": history-search-forward' [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" # Simple prompt -PS1="┌[\e[0;32m\u@\h\e[m] [\e[0;31m\w\e[m] [\t]\n└── " +if [[ "$TERM" = "dumb" ]]; then + PS1="> " +else + PS1="┌[\e[0;32m\u@\h\e[m] [\e[0;31m\w\e[m] [\t]\n└── " +fi # Enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then