From ce60b27ca029502c9fe873ecfb175912d953863d Mon Sep 17 00:00:00 2001 From: Akuma-Git <70658206+Akuma-Git@users.noreply.github.com> Date: Sat, 5 Feb 2022 14:18:52 +0000 Subject: [PATCH] Simplified process, with same endresult see https://misterfpga.org/viewtopic.php?f=27&t=4105 --- system/skeleton/etc/profile | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/system/skeleton/etc/profile b/system/skeleton/etc/profile index 0545277086b4..2cd2cb17cba6 100644 --- a/system/skeleton/etc/profile +++ b/system/skeleton/etc/profile @@ -1,19 +1,8 @@ export PATH=@PATH@ - -if [ "$PS1" ]; then - if [ "`id -u`" -eq 0 ]; then - export PS1='# ' - else - export PS1='$ ' - fi -fi - +export PS1='$(pwd)\$ ' export EDITOR='/bin/vi' # Source configuration files from /etc/profile.d for i in /etc/profile.d/*.sh ; do - if [ -r "$i" ]; then - . $i - fi -done -unset i + [ -r "$i" ] && . $i +done;unset i