From 8697048c2c267a3864eb83d7c633b12d81701c60 Mon Sep 17 00:00:00 2001 From: tg Date: Sun, 24 Mar 2013 15:01:35 +0000 Subject: [PATCH] set (but never export!) PS4 to something timestamped by default, as an example --- dot.mkshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot.mkshrc b/dot.mkshrc index 5ea4b91..9a09c61 100644 --- a/dot.mkshrc +++ b/dot.mkshrc @@ -1,5 +1,5 @@ # $Id$ -# $MirOS: src/bin/mksh/dot.mkshrc,v 1.77 2013/02/17 15:58:26 tg Exp $ +# $MirOS: src/bin/mksh/dot.mkshrc,v 1.78 2013/03/24 15:01:35 tg Exp $ #- # Copyright (c) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010, # 2011, 2012, 2013 @@ -36,7 +36,7 @@ PS1=$'\001\r''${ precmd;}${USER:=$(ulimit -c 0; id -un 2>/dev/null || echo \? )}@${HOSTNAME%%.*}:${ local e=$? d=${PWD:-?} p=~; [[ $p = ?(*/) ]] || \ d=${d/#$p/~}; local m=${%d} n p=...; (( m > 0 )) || m=${#d} (( m > (n = (COLUMNS/3 < 7 ? 7 : COLUMNS/3)) )) && d=${d:(-n)} || \ - p=; print -nr -- "$p$d"; return $e;} '"$PS1 " + p=; print -nr -- "$p$d"; return $e;} '"$PS1 "; PS4='[$EPOCHREALTIME] ' : ${MKSH:=$(whence -p mksh)}; export EDITOR HOSTNAME MKSH TERM USER alias ls=ls unalias ls