On 11 June 2015 at 02:30, Adrien Destugues <pulkomandy@xxxxxxxxx> wrote:
-echo -e "\nWelcome to the Haiku shell.\n"
+ps | grep -e $PPID | grep -e Terminal | grep -q -e $PPID
+if [ $? -eq 0 ] ; then
+ echo -e "\nWelcome to the Haiku shell.\n"
+else
+ echo -e "\nSwitching to architecture `getarch`\n"
+fi
Isn't there a better way to do this? It would print the "switching"
message for any alternative Terminal (fonzoterm, ARPTelnet, whatever).