diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-15 18:32:01 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-15 18:32:01 +0200 |
commit | ee120a704a2d193bb763c87e31fce38c58f75d1e (patch) | |
tree | 17bbe706d88c90d1414f8e00568043c91db6320b | |
parent | b222dca1c9a61e7921ba22fbcf8c1349370058dd (diff) |
add fancy prompt with hostname
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | package/base-files/src/etc/profile | 4 | ||||
-rw-r--r-- | package/busybox/config/shell/Config.in | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -1,6 +1,6 @@ - fix ARM OABI support - fix watchdog for alix1c (mfgpt timers problem) - convert global ipv6 to flavours -- add support for brcm 2.6 +- add support for brcm 2.6 (flash support) - macos x build - help text for config/ needs adoption diff --git a/package/base-files/src/etc/profile b/package/base-files/src/etc/profile index b849feb49..0d8a4f240 100644 --- a/package/base-files/src/etc/profile +++ b/package/base-files/src/etc/profile @@ -1,9 +1,9 @@ export PATH=/bin:/sbin:/usr/bin:/usr/sbin export TERM=vt220 if [[ $(id -u) = 0 ]]; then - export PS1='# ' + export PS1='\u@\h:\w\# ' else - export PS1='$ ' + export PS1='\u@\h:\w\$ ' fi cat /etc/banner 2>&- [ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi diff --git a/package/busybox/config/shell/Config.in b/package/busybox/config/shell/Config.in index 30ed639c2..6535f3eb6 100644 --- a/package/busybox/config/shell/Config.in +++ b/package/busybox/config/shell/Config.in @@ -130,7 +130,7 @@ config BUSYBOX_ASH_RANDOM_SUPPORT config BUSYBOX_ASH_EXPAND_PRMT bool "Expand prompt string" - default n + default y depends on BUSYBOX_ASH help "PS#" may contain volatile content, such as backquote commands. |