~mdw
/
profile
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dot/swank.lisp: Delete the debugging cruft.
[profile]
/
dot
/
shell-rc
diff --git
a/dot/shell-rc
b/dot/shell-rc
index
ee9161d
..
ea4f575
100644
(file)
--- a/
dot/shell-rc
+++ b/
dot/shell-rc
@@
-67,9
+67,28
@@
__mdw_hqual=$__mdw_hqual${SCHROOT_CHROOT_NAME+/$SCHROOT_CHROOT_NAME}
__mdw_hqual=$__mdw_hqual${CROSS_BUILDENV+/$CROSS_BUILDENV}
__mdw_set_prompt_hacks () { host=$__mdw_host; dir=""; }
__mdw_hqual=$__mdw_hqual${CROSS_BUILDENV+/$CROSS_BUILDENV}
__mdw_set_prompt_hacks () { host=$__mdw_host; dir=""; }
+__mdw_system=$(uname -s)
: ${USER-${LOGNAME-$(id -un)}}
__mdw_user=$USER
: ${USER-${LOGNAME-$(id -un)}}
__mdw_user=$USER
+case $(id -u) in
+ 0)
+ __mdw_rootp=t
+ ;;
+ *)
+ case $__mdw_system in
+ CYGWIN_*)
+ case " $(id -G) " in
+ *" 544 "*) __mdw_rootp=t __mdw_user="$__mdw_user%admin" ;;
+ *) __mdw_rootp=nil ;;
+ esac
+ ;;
+ *)
+ __mdw_rootp=nil
+ ;;
+ esac
+esac
+
__mdw_set_prompt_pieces () {
## Fancy highlighting in some terminals.
__mdw_set_prompt_pieces () {
## Fancy highlighting in some terminals.
@@
-82,12
+101,12
@@
__mdw_set_prompt_pieces () {
## highlight when I'm running as some other user. Highlight when this
## isn't the outermost shell on the terminal.
local left right u tty
## highlight when I'm running as some other user. Highlight when this
## isn't the outermost shell on the terminal.
local left right u tty
- case $
(id -u)
in
-
0
)
+ case $
__mdw_rootp
in
+
t
)
left=$(echo « | iconv -f UTF-8 -t //translit)
right=$(echo » | iconv -f UTF-8 -t //translit)
;;
left=$(echo « | iconv -f UTF-8 -t //translit)
right=$(echo » | iconv -f UTF-8 -t //translit)
;;
-
*
)
+
nil
)
case $USER in
mdw | mwooding | nemo) u="" left="[" right="]" ;;
*) u="$__mdw_user@" left="{" right="}" ;;
case $USER in
mdw | mwooding | nemo) u="" left="[" right="]" ;;
*) u="$__mdw_user@" left="{" right="}" ;;
@@
-202,6
+221,12
@@
alias make="nice make"
alias cross-run="nice cross-run"
alias gdb="gdb -q"
alias cross-run="nice cross-run"
alias gdb="gdb -q"
+## Shut up Lisp interpreters.
+alias clisp="clisp -q -q"
+alias cmucl="rlwrap cmucl -quiet"
+alias ecl="rlwrap ecl"
+alias sbcl="rlwrap sbcl --noinform"
+
###--------------------------------------------------------------------------
### Colour output.
###--------------------------------------------------------------------------
### Colour output.