From: Mike Frysinger Date: Mon, 3 Nov 2008 18:41:24 +0000 (-0500) Subject: dont error out if PS1 customize isnt found X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4c601c57ba77fef5c4edb1861f4d402173947861;p=home.git dont error out if PS1 customize isnt found --- 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\] '