summaryrefslogtreecommitdiff
path: root/package/base-files/src/etc/profile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-07-15 18:32:01 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-07-15 18:32:01 +0200
commitee120a704a2d193bb763c87e31fce38c58f75d1e (patch)
tree17bbe706d88c90d1414f8e00568043c91db6320b /package/base-files/src/etc/profile
parentb222dca1c9a61e7921ba22fbcf8c1349370058dd (diff)
add fancy prompt with hostname
Diffstat (limited to 'package/base-files/src/etc/profile')
-rw-r--r--package/base-files/src/etc/profile4
1 files changed, 2 insertions, 2 deletions
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