1###############################################################################
2#
3# Copyright (C) 2009-2013 Nintendo.  All rights reserved.
4#
5# These coded instructions, statements, and computer programs contain
6# proprietary information of Nintendo of America Inc. and/or Nintendo
7# Company Ltd., and are protected by Federal copyright law.  They may
8# not be disclosed to third parties or copied or duplicated in any form,
9# in whole or in part, without the prior written consent of Nintendo.
10#
11###############################################################################
12
13# Update PS1 to include session information (if enabled)
14if [ "$SESSION_MANAGER" = "1" ]
15then
16    if [ ! -z "$BRIDGE_CURRENT_IP_ADDRESS" ]
17    then
18        CAPTION="Multi-Cafe Session for $BRIDGE_CURRENT_NAME($BRIDGE_CURRENT_IP_ADDRESS)"
19    else
20        CAPTION="Multi-Cafe Session"
21    fi
22
23    export PS1="\[\e]0;$CAPTION, \w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ "
24fi
25