From b7d1eb1cf19cb5663fa95d90a43e735d38ed5e92 Mon Sep 17 00:00:00 2001 From: jon Date: Sat, 15 Jun 2019 23:27:22 +0000 Subject: [PATCH] Changed my tty test in bashrc --- bash/.bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bash/.bashrc b/bash/.bashrc index 9f8e60d..7cd23ad 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -49,7 +49,8 @@ export HISTTIMEFORMAT="%F %T: " export HISTSIZE=1000 export HISTFILESIZE=2000 -if tty -s; then +#if tty -s; then +if [ -t 1 ]; then export PS1="\[$(tput bold)\]\[$(tput setaf 2)\][\u@\h \W]\\$ \[$(tput sgr0)\]" fi