4 ###--------------------------------------------------------------------------
9 if (~ $TERM linux* screen* xterm* vt100* eterm*) {
10 bold = `{tput bold} unbold = `{tput sgr0}
16 left = `{echo « | iconv -f utf8 -t //translit}
17 right = `{echo » | iconv -f utf8 -t //translit}
20 if (~ $u mdw mwooding) {
21 u = '' left = '[' right = ']'
23 u = $u^@ left = '{' right = '}'
25 if (~ $__mdw_tty `{tty}) {
26 left = '<' right = '>'
32 if (~ $#SSH_CLIENT 0 && ! ~ $__mdw_sechost $host) {
33 sec_l = '(' sec_r = ')'
40 if (~ $cwd $home $home/*) {
41 cwd = `{echo $cwd | sed 's:^' ^ $home ^':~:'}
43 prompt = ($bold$left$sec_l$u$host$sec_r^' '^$cwd$right$unbold '')
47 ###--------------------------------------------------------------------------
48 ### Convenient aliases.
50 fn rootly { ~ $#* 0 && * = $SHELL; $__MDW_ROOTLY $* }
52 fn re { rootly $EDITOR $* }
53 fn pstree { builtin pstree -hl }
59 builtin ls $LS_OPTIONS '--color=auto' $*
68 builtin $grep '--color=always' $* | mdw-pager
73 fn grep { greplike grep $* }
74 fn egrep { greplike egrep $* }
75 fn fgrep { greplike fgrep $* }
76 fn zgrep { greplike zgrep $* }
78 if (~ $INSIDE_EMACS 22.*,comint) PAGER = cat
80 ###----- That's all, folks --------------------------------------------------