X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/75ff64d875df89a22f9dcaf7741b125668345d3c..8a7e906d367d31b3734c5ea656bd4fc3b3a74168:/bashrc diff --git a/bashrc b/bashrc index 60fed8a..e7eb9c3 100644 --- a/bashrc +++ b/bashrc @@ -1,4 +1,4 @@ -# -*-sh-*- +# -*- mode: sh; coding: utf-8 -*- # # $Id: .bashrc,v 1.6 1996/12/08 20:33:42 mdw Exp $ # @@ -21,7 +21,7 @@ if [ -t 0 ]; then PS2="> " PS4="+ " else - + case "$TERM" in linux*|screen*|xterm*|vt100*) bold='\[\]' unbold='\[\]' nl='\[ \]' ;; @@ -30,10 +30,11 @@ if [ -t 0 ]; then 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="]" ;; *) @@ -43,7 +44,7 @@ if [ -t 0 ]; then if [ "$__mdw_tty" = "`tty`" ]; then left="<" right=">" else - export __mdw_tty="`tty`" + export __mdw_tty="`tty`" fi fi @@ -86,7 +87,7 @@ shopt -u shift_verbose shopt -s sourcepath # --- Set the CDPATH --- -# +# # CDPATH=~/src:/usr/src:/usr/lib:/usr/share # dots=.. # i=6 @@ -237,13 +238,13 @@ pathhack () { continue ;; --) - shift + shift break ;; [-+]*) - ;; + ;; *) - break + break ;; esac hack=${arg#[+-]} @@ -254,16 +255,16 @@ pathhack () { } 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