packages/utils/mksh/patches/100-dot_mkshrc
nbd 29d3d3913d update mksh to R29c
git-svn-id: svn://svn.openwrt.org/openwrt/packages@7044 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-04-24 12:29:17 +00:00

22 lines
873 B
Plaintext

diff -ur mksh.old/dot.mkshrc mksh.dev/dot.mkshrc
--- mksh.old/dot.mkshrc 2007-04-24 14:21:53.725182064 +0200
+++ mksh.dev/dot.mkshrc 2007-04-24 14:27:50.157996040 +0200
@@ -1,6 +1,6 @@
: ${EDITOR:=/bin/ed} ${TERM:=vt100}
-[[ ${HOSTNAME:=$(ulimit -c 0; hostname -s 2>/dev/null)} = \
- @(localhost|*([ ])) ]] && HOSTNAME=$(ulimit -c 0; hostname 2>/dev/null)
+[[ ${HOSTNAME:=$(ulimit -c 0; cat /proc/sys/kernel/hostname)} = \
+ @(localhost|*([ ])) ]] && HOSTNAME=$(ulimit -c 0; cat /proc/sys/kernel/hostname)
if [[ $(ulimit -c 0; id -u 2>/dev/null) -eq 0 ]]; then
PS1='# '
else
@@ -25,7 +25,7 @@
alias l='/bin/ls -F'
alias la='l -a'
alias ll='l -l'
-alias lo='la -lo'
+alias lo='la -l'
whence -p rot13 >/dev/null || alias rot13='tr [A-Za-z] [N-ZA-Mn-za-m]'
whence -p hd >/dev/null || function hd {
hexdump -e '"%08.8_ax " 8/1 "%02X " " - " 8/1 "%02X "' \