From 4c601c57ba77fef5c4edb1861f4d402173947861 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 3 Nov 2008 13:41:24 -0500 Subject: [PATCH] dont error out if PS1 customize isnt found --- .gitignore | 1 + .profile.d/PS1.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e8c0ad6..2782500 100644 --- a/.gitignore +++ b/.gitignore @@ -95,6 +95,7 @@ a.out /.gnupg/.#lk* /.gnupg/*.gpg /.gnupg/*.kbx +/.gnupg/random_seed /.ncftp/firewall /.ncftp/history diff --git a/.profile.d/PS1.sh b/.profile.d/PS1.sh index 9432635..731133d 100644 --- a/.profile.d/PS1.sh +++ b/.profile.d/PS1.sh @@ -1 +1 @@ -PS1='\[\e[0;33m\]\u\[\e[30;1m\]@\[\e[31;1m\]\h'`cat /etc/ps1_append`'\[\e[30;1m\] \j:$? \[\e[34;1m\]\W \$\[\e[0m\] ' +PS1='\[\e[0;33m\]\u\[\e[30;1m\]@\[\e[31;1m\]\h'$([ -e /etc/ps1_append ] && cat /etc/ps1_append)'\[\e[30;1m\] \j:$? \[\e[34;1m\]\W \$\[\e[0m\] ' -- 2.39.5