English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Contents of /branches/freewrt_1_0/package/mksh/patches/patch-dot_mkshrc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3814 - (show annotations) (download)
Fri Oct 24 22:55:58 2008 UTC (5 years, 4 months ago) by tg
File size: 1187 byte(s)
mksh update; please test on the actual devices if possible

1 $FreeWRT$
2
3 FreeWRT patches:
4 no hostname(1)
5 ls has no -o
6 yofuh doesnt like $? in $PS1
7
8 --- mksh.orig/dot.mkshrc Sat May 17 18:27:55 2008
9 +++ mksh/dot.mkshrc Fri Oct 24 22:51:32 2008
10 @@ -2,13 +2,15 @@
11 #-
12 # ~/.mkshrc: mksh initialisation file for interactive shells
13
14 -: ${EDITOR:=/bin/ed} ${TERM:=vt100} ${HOSTNAME:=$(ulimit -c 0;hostname -s 2>&-)}
15 +: ${EDITOR:=/bin/ed} ${TERM:=vt100} ${HOSTNAME:=$(</proc/sys/kernel/hostname)}
16 [[ $HOSTNAME = @(localhost|*([ ])) ]] && HOSTNAME=$(ulimit -c 0;hostname 2>&-)
17 : ${HOSTNAME:=nil}; if (( USER_ID )); then PS1='$'; else PS1='#'; fi
18 function precmd {
19 typeset -i e=$?
20
21 - (( e )) && print -n "$e|"
22 +# enable this back if you want the errorlevel in your prompt
23 +# this is default in upstream mksh, disabled locally in fwrt
24 +# (( e )) && print -n "$e|"
25 }
26 PS1='$(precmd)${USER:=$(ulimit -c 0;id -un 2>&- || print \?)}@${HOSTNAME%%.*}:$(
27 typeset pfx=~ wd=${PWD:-?}
28 @@ -30,7 +32,7 @@ unalias ls
29 alias l='ls -F'
30 alias la='l -a'
31 alias ll='l -l'
32 -alias lo='l -alo'
33 +alias lo='l -al'
34 alias which='whence -p'
35 whence -p rot13 >&- || alias rot13='tr \
36 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ \

Properties

Name Value
svn:keywords FreeWRT=Id

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20