-# -*-sh-*-
+# -*- mode: sh; coding: utf-8 -*-
#
# $Id: .bashrc,v 1.6 1996/12/08 20:33:42 mdw Exp $
#
PS2="> "
PS4="+ "
else
-
+
case "$TERM" in
linux*|screen*|xterm*|vt100*)
bold='\[\e[1m\]' unbold='\[\e[m\]' nl='\[\r\]' ;;
esac
if (( EUID == 0 )); then
- left="«" right="»"
+ left=`echo « | iconv -f utf8 -t //translit`
+ right=`echo » | iconv -f utf8 -t //translit`
else
case $USER in
- mdw|mwooding)
+ mdw|mwooding)
u="" left="[" right="]"
;;
*)
if [ "$__mdw_tty" = "`tty`" ]; then
left="<" right=">"
else
- export __mdw_tty="`tty`"
+ export __mdw_tty="`tty`"
fi
fi
shopt -s sourcepath
# --- Set the CDPATH ---
-#
+#
# CDPATH=~/src:/usr/src:/usr/lib:/usr/share
# dots=..
# i=6
alias rootly=$__MDW_ROOTLY
alias r=rootly
alias re="rootly $EDITOR"
-alias pstree="pstree -Ghl"
+alias pstree="pstree -hl"
alias cdtmp='cd ${TMPDIR-/tmp}'
alias pushtmp='pushd ${TMPDIR-/tmp}'
alias e="$EDITOR"
alias svn="svnwrap svn"
alias @="ssh"
+[ -r /etc/bash_completion ] && . /etc/bash_completion
+[ -r $HOME/.bash_completion ] && . $HOME/.bash_completion
+
# --- Make `xt' start an xterm, maybe logging into a remote host ---
xt () {
continue
;;
--)
- shift
+ shift
break
;;
[-+]*)
- ;;
+ ;;
*)
- break
+ break
;;
esac
hack=${arg#[+-]}
}
case "$arg,$force,:$PATH:" in
-*,*,*:"$dir":*)
- path-remove path "$dir"
+ path-remove path "$dir"
;;
+*,t,*:"$dir":*)
- path-remove path "$dir"
+ path-remove path "$dir"
path-add path "$dir"
;;
+*,nil,*:"$dir":*)
- ;;
+ ;;
+*,*)
- path-add path "$dir"
+ path-add path "$dir"
;;
esac
shift