From 2338afffc3df248fa53324940f5513cd6eeef035 Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Sat, 13 Sep 2014 06:28:53 +0000 Subject: [PATCH] Show the name of environment in shell prmpt. FossilOrigin-Name: b79f45a4c586f9a05ebed3d967fbc3e247f54f404f58d38f12d41dff63b85e4a --- tools/openwrtenv.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/openwrtenv.sh b/tools/openwrtenv.sh index d8e08035..4aac6033 100644 --- a/tools/openwrtenv.sh +++ b/tools/openwrtenv.sh @@ -14,5 +14,7 @@ export CC=mips-openwrt-linux-uclibc-gcc export LD=mips-openwrt-linux-uclibc-ld export AR=mips-openwrt-linux-uclibc-ar -/bin/bash +#bash --rcfile <(cat ~/.bashrc; echo 'PS1="OpenWrtEnv:\w\$"') +echo 'export PS1="OpenWrtEnv:\w\$ "' > /tmp/brc +bash --rcfile /tmp/brc