chiark
/
gitweb
/
~mdw
/
profile
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup: Fix up whitespace everywhere.
[profile]
/
bashrc
diff --git
a/bashrc
b/bashrc
index 60fed8a131b9be3c05aa47b820d5d1ef89bb256d..4e941d188a1e234504f4e82c481f73a51cf2daf3 100644
(file)
--- a/
bashrc
+++ b/
bashrc
@@
-21,7
+21,7
@@
if [ -t 0 ]; then
PS2="> "
PS4="+ "
else
PS2="> "
PS4="+ "
else
-
+
case "$TERM" in
linux*|screen*|xterm*|vt100*)
bold='\[
\e
[1m\]' unbold='\[
\e
[m\]' nl='\[
\r
\]' ;;
case "$TERM" in
linux*|screen*|xterm*|vt100*)
bold='\[
\e
[1m\]' unbold='\[
\e
[m\]' nl='\[
\r
\]' ;;
@@
-33,7
+33,7
@@
if [ -t 0 ]; then
left="«" right="»"
else
case $USER in
left="«" right="»"
else
case $USER in
-
mdw|mwooding)
+ mdw|mwooding)
u="" left="[" right="]"
;;
*)
u="" left="[" right="]"
;;
*)
@@
-43,7
+43,7
@@
if [ -t 0 ]; then
if [ "$__mdw_tty" = "`tty`" ]; then
left="<" right=">"
else
if [ "$__mdw_tty" = "`tty`" ]; then
left="<" right=">"
else
-
export __mdw_tty="`tty`"
+ export __mdw_tty="`tty`"
fi
fi
fi
fi
@@
-86,7
+86,7
@@
shopt -u shift_verbose
shopt -s sourcepath
# --- Set the CDPATH ---
shopt -s sourcepath
# --- Set the CDPATH ---
-#
+#
# CDPATH=~/src:/usr/src:/usr/lib:/usr/share
# dots=..
# i=6
# CDPATH=~/src:/usr/src:/usr/lib:/usr/share
# dots=..
# i=6
@@
-237,13
+237,13
@@
pathhack () {
continue
;;
--)
continue
;;
--)
-
shift
+ shift
break
;;
[-+]*)
break
;;
[-+]*)
-
;;
+ ;;
*)
*)
-
break
+ break
;;
esac
hack=${arg#[+-]}
;;
esac
hack=${arg#[+-]}
@@
-254,16
+254,16
@@
pathhack () {
}
case "$arg,$force,:$PATH:" in
-*,*,*:"$dir":*)
}
case "$arg,$force,:$PATH:" in
-*,*,*:"$dir":*)
-
path-remove path "$dir"
+ path-remove path "$dir"
;;
+*,t,*:"$dir":*)
;;
+*,t,*:"$dir":*)
-
path-remove path "$dir"
+ path-remove path "$dir"
path-add path "$dir"
;;
+*,nil,*:"$dir":*)
path-add path "$dir"
;;
+*,nil,*:"$dir":*)
-
;;
+ ;;
+*,*)
+*,*)
-
path-add path "$dir"
+ path-add path "$dir"
;;
esac
shift
;;
esac
shift