Ver Fonte

add fancy prompt with hostname

Waldemar Brodkorb há 14 anos atrás
pai
commit
ee120a704a
3 ficheiros alterados com 4 adições e 4 exclusões
  1. 1 1
      TODO
  2. 2 2
      package/base-files/src/etc/profile
  3. 1 1
      package/busybox/config/shell/Config.in

+ 1 - 1
TODO

@@ -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

+ 2 - 2
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

+ 1 - 1
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.