From 3c08adef21129761f27ae654a1c5d1705786691a Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sat, 17 Sep 2016 18:05:39 +0200 Subject: [PATCH] Add architecture to prompt when in getarch context. Fixes #10687. --- data/etc/profile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/etc/profile b/data/etc/profile index 74b22693a7..c81cc9137b 100644 --- a/data/etc/profile +++ b/data/etc/profile @@ -6,8 +6,10 @@ ps |& grep -e $PPID |& grep -e $SHELL |& grep -q -e $PPID > /dev/null 2>&1 if [ $? -eq 1 ] ; then echo -e "\nWelcome to the Haiku shell.\n" + export PS1="\w> " else echo -e "\nSwitching to architecture `getarch`\n" + export PS1="[`getarch`] \w> " fi export USER=`id -un` @@ -17,7 +19,6 @@ if [ -z $BE_HOST_CPU ]; then . /boot/system/boot/SetupEnvironment fi -export PS1="\w> " export HISTFILESIZE=500 export HISTCONTROL=ignoredups