a3f6b9760177ac1fa4c123a434841aee6eb87742
[openwrt/svn-archive/archive.git] / utils / mksh / patches / 100-dot_mkshrc
1 --- mksh.old/dot.mkshrc 2007-03-04 06:21:11.000000000 +0000
2 +++ mksh.dev/dot.mkshrc 2007-03-05 22:11:49.000000000 +0000
3 @@ -1,6 +1,6 @@
4 # $MirOS: src/bin/mksh/dot.mkshrc,v 1.8 2007/03/04 06:20:48 tg Exp $
5
6 -: ${EDITOR:=/bin/ed} ${HOSTNAME:=$(hostname -s 2>/dev/null || hostname)}
7 +: ${EDITOR:=/bin/ed} ${HOSTNAME:=$(</proc/sys/kernel/hostname)}
8 PS1='$(((rv=$?)) && print $rv\|)${USER:=$(id -un)}@${HOSTNAME:=nil}:$(
9 local pfx=~ wd=${PWD:-$(pwd)}
10 [[ ${wd#$pfx} = $wd || $pfx = ?(/) ]] || wd=\~${wd#$pfx}
11 @@ -21,7 +21,7 @@ export EDITOR HOSTNAME MKSH=$(whence -p
12 alias l='/bin/ls -F'
13 alias la='l -a'
14 alias ll='l -l'
15 -alias lo='la -lo'
16 +alias lo='la -l'
17 [ -x /usr/bin/hd ] || eval alias hd="'hexdump -e '\\''\"%08.8_ax \" 8/1" \
18 '"%02X " " - " 8/1 "%02X "'"'\\'' -e '\\''"'" |" "%_p"'"'\\''" \
19 "-e '\\''"'"|\n"'"'\\'' '"