From 6e9d7f33e86a5223620d22167e5e46ddbe88eede Mon Sep 17 00:00:00 2001 From: tg Date: Tue, 3 Nov 2009 17:58:44 +0000 Subject: [PATCH] like a pathfinder, one good commit a day: add most of the mksh wtf edition dot.mkshrc patch, some commented out; optimise some other cases (e.g. don't reset MKSH if set, don't export already exported variables, etc.) --- dot.mkshrc | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/dot.mkshrc b/dot.mkshrc index f104616..2e8c0fb 100644 --- a/dot.mkshrc +++ b/dot.mkshrc @@ -1,5 +1,5 @@ # $Id$ -# $MirOS: src/bin/mksh/dot.mkshrc,v 1.50 2009/11/02 18:47:02 tg Exp $ +# $MirOS: src/bin/mksh/dot.mkshrc,v 1.51 2009/11/03 17:58:44 tg Exp $ #- # Copyright (c) 2002, 2003, 2004, 2006, 2007, 2008, 2009 # Thorsten Glaser @@ -33,7 +33,7 @@ PS1=' $(precmd)${USER:=$(ulimit -c 0;id -un 2>&-||print \?)}@${HOSTNAME%%.*}:$( typeset d=${PWD:-?} n p=~; [[ $p = ?(*/) ]] || d=${d/#$p/~} (( ${#d} > (n = (COLUMNS/3 < 7 ? 7 : COLUMNS/3)) )) && { d=${d:(-n)}; p=...; } || p=; print -nr -- "$p$d") '"$PS1 " -export EDITOR HOSTNAME LESSHISTFILE=- MKSH=$(whence -p mksh) PS1 TERM USER +: ${MKSH:=$(whence -p mksh)}; export EDITOR HOSTNAME MKSH PS1 TERM USER alias ls=ls unalias ls alias l='ls -F' @@ -332,4 +332,21 @@ function Lstripcom { done; } } +: place customsations below this line + +for p in ~/.etc/bin ~/bin; do + [[ -d $p/. ]] || continue + [[ :$PATH: = *:$p:* ]] || PATH=$p:$PATH +done + +export SHELL=$MKSH MANWIDTH=80 LESSHISTFILE=- +alias cls='print -n \\033c' + +#unset LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_IDENTIFICATION LC_MONETARY \ +# LC_NAME LC_NUMERIC LC_TELEPHONE LC_TIME +#p=en_GB.UTF-8 +#export LANG=C LC_CTYPE=$p LC_MEASUREMENT=$p LC_MESSAGES=$p LC_PAPER=$p + +unset p + : place customsations above this line