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

SCM Repository

ViewVC logotype

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3719 by tg, Mon Oct 15 09:45:13 2007 UTC revision 3720 by tg, Sun Apr 6 02:04:00 2008 UTC
# Line 5  $FreeWRT$ Line 5  $FreeWRT$
5            – ls has no -o            – ls has no -o
6            – yofuh doesn’t like $? in $PS1            – yofuh doesn’t like $? in $PS1
7    
8  --- mksh.orig/dot.mkshrc        Tue Oct  2 01:03:12 2007  --- mksh.orig/dot.mkshrc        Mon Mar  3 20:22:37 2008
9  +++ mksh/dot.mkshrc     Mon Oct 15 09:32:00 2007  +++ mksh/dot.mkshrc     Fri Mar 28 22:04:44 2008
10  @@ -24,13 +24,15 @@  @@ -25,13 +25,15 @@
11   #-   # sample mksh initialisation file for interactive shells; install as
12   # sample mksh initialisation file for interactive shells   # /etc/skel/.mkshrc (as root, for new accounts) or copy to ~/.mkshrc
13    
14  -: ${EDITOR:=/bin/ed} ${TERM:=vt100} ${HOSTNAME:=$(ulimit -c 0;hostname -s 2>&-)}  -: ${EDITOR:=/bin/ed} ${TERM:=vt100} ${HOSTNAME:=$(ulimit -c 0;hostname -s 2>&-)}
15  +: ${EDITOR:=/bin/ed} ${TERM:=vt100} ${HOSTNAME:=$(</proc/sys/kernel/hostname)}  +: ${EDITOR:=/bin/ed} ${TERM:=vt100} ${HOSTNAME:=$(</proc/sys/kernel/hostname)}
16   [[ $HOSTNAME = @(localhost|*([  ])) ]] && HOSTNAME=$(ulimit -c 0;hostname 2>&-)   [[ $HOSTNAME = @(localhost|*([  ])) ]] && HOSTNAME=$(ulimit -c 0;hostname 2>&-)
17   : ${HOSTNAME:=nil}; PS1='#'; [[ "$(ulimit -c 0; id -u 2>&-)" -eq 0 ]] || PS1='$'   : ${HOSTNAME:=nil}; PS1='#'; [[ "$(ulimit -c 0; id -u 2>&-)" -eq 0 ]] || PS1='$'
18   function precmd {   function precmd {
19          typeset -i10 e=$?          typeset -Ui10 e=$?
20    
21  -       (( e )) && print -n -- "$e|"  -       (( e )) && print -n "$e|"
22  +# enable this back if you want the errorlevel in your prompt  +# enable this back if you want the errorlevel in your prompt
23  +# this is default in upstream mksh  +# this is default in upstream mksh, disabled locally in fwrt
24  +#      (( e )) && print -n -- "$e|"  +#      (( e )) && print -n "$e|"
25   }   }
26   PS1='$(precmd)${USER:=$(ulimit -c 0;id -un 2>&- || print \?)}@${HOSTNAME%%.*}:$(   PS1='$(precmd)${USER:=$(ulimit -c 0;id -un 2>&- || print \?)}@${HOSTNAME%%.*}:$(
27          typeset pfx=~ wd=${PWD:-?}          typeset pfx=~ wd=${PWD:-?}
28  @@ -50,7 +52,7 @@ export EDITOR HOSTNAME LESSHISTFILE=- MK  @@ -51,7 +53,7 @@ export EDITOR HOSTNAME LESSHISTFILE=- MK
29   alias l='/bin/ls -F'   alias l='/bin/ls -F'
30   alias la='l -a'   alias la='l -a'
31   alias ll='l -l'   alias ll='l -l'
32  -alias lo='la -lo'  -alias lo='l -alo'
33  +alias lo='la -l'  +alias lo='l -al'
34   alias which='whence -p'   alias which='whence -p'
35   whence -p rot13 >&- || alias rot13='tr [A-Za-z] [N-ZA-Mn-za-m]'   whence -p rot13 >&- || alias rot13='tr \
36   whence -p hd >&- || function hd {       abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ \

Legend:
Removed from v.3719  
changed lines
  Added in v.3720

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