aboutsummaryrefslogtreecommitdiff
path: root/shell/ash
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash')
-rw-r--r--shell/ash17
1 files changed, 8 insertions, 9 deletions
diff --git a/shell/ash b/shell/ash
index 0769478..dc8cce0 100644
--- a/shell/ash
+++ b/shell/ash
@@ -1,19 +1,18 @@
+color="no"
+case "$TERM" in
+ xterm*) color=yes;;
+ *256color) color=yes;;
+esac
+
case "$-" in
*i*)
set_pager
set_editor
setaliases
- function nonzero_return() {
- RETVAL=$?
- [ $RETVAL -ne 0 ] && echo "$RETVAL:"
- }
-
- export PS1="\`nonzero_return\`[\t] <\u@\H> \w \\$ "
-
- # Same thing but red user/host combo
+ export PS1="$ "
if [ $(id -u) -eq 0 ] ; then
- export PS1="\`nonzero_return\`[\t] <\[\e[31m\]\u\[\e[m\]\[\e[31m\]@\[\e[m\]\[\e[31m\]\H\[\e[m\]> \w \\$ "
+ export PS1="# "
fi
;;
*) return ;;