Merge branch 'master' of gitosis@majnematic.com:davesdots

This commit is contained in:
David Alexander Majnemer 2009-01-14 01:32:55 -05:00
commit eb17bed554
10 changed files with 28 additions and 12 deletions

View file

@ -1 +1 @@
source ~/.bashrc . ~/.bashrc

View file

@ -65,7 +65,7 @@ TERM=`fix_term $TERM`
# I am sorry to hear that you are running an # I am sorry to hear that you are running an
# xterm that has no colors (I am looking at you solaris) # xterm that has no colors (I am looking at you solaris)
if [ $TERM = xterm ] && (type -p tput > /dev/null 2>&1) && [ `tput -T xterm colors` = -1 ] ; then if [ $TERM = xterm ] && (command -v tput > /dev/null 2>&1) && [ `tput -T xterm colors` = -1 ] ; then
# lets see what we can do about your terrible term # lets see what we can do about your terrible term
TERM=`fix_term xterm-color` TERM=`fix_term xterm-color`
fi fi

View file

@ -41,7 +41,7 @@ case `uname -s` in
alias ls="gls -h --color=auto" alias ls="gls -h --color=auto"
else else
# you have a GNU ls, surprise... # you have a GNU ls, surprise...
case `ls --version 2>/dev/null | head -1` in case `ls --version 2>/dev/null | head -n 1` in
*fileutils*|*coreutils*) *fileutils*|*coreutils*)
alias ls="ls -h --color=auto" alias ls="ls -h --color=auto"
;; ;;
@ -55,7 +55,7 @@ case `uname -s` in
alias grep='ggrep -d skip --color=auto' alias grep='ggrep -d skip --color=auto'
else else
# woah, you have a GNU grep... # woah, you have a GNU grep...
case `grep --version 2>/dev/null | head -1` in case `grep --version 2>/dev/null | head -n 1` in
*GNU*) *GNU*)
alias grep='grep -d skip --color=auto' alias grep='grep -d skip --color=auto'
;; ;;

View file

@ -7,7 +7,7 @@ export PAGER
if [ $PAGER = less ] ; then if [ $PAGER = less ] ; then
for lesspipe in lesspipe lesspipe.sh ; do for lesspipe in lesspipe lesspipe.sh ; do
lesspipe_test=`command -v ${lesspipe} 2>/dev/null` lesspipe_test=`command -v ${lesspipe} 2>/dev/null`
if [ -n $lesspipe_test ] ; then if [ -n "${lesspipe_test}" ] ; then
LESSOPEN="| ${lesspipe_test} %s" && break LESSOPEN="| ${lesspipe_test} %s" && break
export LESSOPEN export LESSOPEN
fi fi

View file

@ -142,6 +142,11 @@ $if mode=emacs
"\e[H": beginning-of-line "\e[H": beginning-of-line
"\e[U": end-of-line "\e[U": end-of-line
$endif $endif
$if term=sun
"\e[214z": beginning-of-line
"\e[220z": end-of-line
"^?": delete-char
$endif
$if term=cygwin $if term=cygwin
"\e[1~": beginning-of-line "\e[1~": beginning-of-line
"\e[4~": end-of-line "\e[4~": end-of-line

View file

@ -1,9 +1,12 @@
if [ $USER = root ] ; then if [ -z "${USER}" ] ; then
USER=$LOGNAME
fi
if [ $USER ] && [ $USER = root ] ; then
BASE="#" BASE="#"
else else
BASE="$" BASE="$"
fi fi
PS1=$'\E[01;32m'"${USER} "$'\E[01;34m''$PWD'" ${BASE} "$'\E[0m' PS1=$'\E[01;32m'"${USER} "$'\E[01;34m''$PWD'" ${BASE} "$'\E[0m'
export PS1 export PS1

3
vimrc
View file

@ -264,8 +264,11 @@ inoremap # X<BS>#
map <C-h> <BS> map <C-h> <BS>
map! <C-h> <BS> map! <C-h> <BS>
if (&term =~ "interix") if (&term =~ "interix")
map <C-?> <DEL>
map! <C-?> <DEL>
map  <Home> map  <Home>
map  <End> map  <End>
elseif (&term =~ "^sun")
map <C-?> <DEL> map <C-?> <DEL>
map! <C-?> <DEL> map! <C-?> <DEL>
elseif (&term !~ "cons") elseif (&term !~ "cons")

View file

@ -61,6 +61,11 @@ case $TERM in
bindkey '\e[U' end-of-line bindkey '\e[U' end-of-line
bindkey '^?' delete-char bindkey '^?' delete-char
;; ;;
sun*)
bindkey '\e[214z' beginning-of-line
bindkey '\e[220z' end-of-line
bindkey '^?' delete-char
;;
cygwin*) cygwin*)
bindkey '\e[1~' beginning-of-line bindkey '\e[1~' beginning-of-line
bindkey '\e[4~' end-of-line bindkey '\e[4~' end-of-line

View file

@ -4,19 +4,19 @@ if [ -d "/opt/intel/Compiler" ] ; then
if [ -r $iccvars_path ] ; then if [ -r $iccvars_path ] ; then
case `uname -m` in case `uname -m` in
x86_64) x86_64)
source $iccvars_path intel64 . $iccvars_path intel64
;; ;;
i*86) i*86)
source $iccvars_path ia32 . $iccvars_path ia32
;; ;;
ia64) ia64)
source $iccvars_path ia64 . $iccvars_path ia64
;; ;;
esac esac
fi fi
elif [ -d "/opt/intel/cc" ] || [ -d "/opt/intel/cce" ] ; then elif [ -d "/opt/intel/cc" ] || [ -d "/opt/intel/cce" ] ; then
iccvars_path=$(echo /opt/intel/cc*/(10|9).*/bin/iccvars.sh(On[1])) iccvars_path=$(echo /opt/intel/cc*/(10|9).*/bin/iccvars.sh(On[1]))
if [ -r $iccvars_path ] ; then if [ -r $iccvars_path ] ; then
source $iccvars_path . $iccvars_path
fi fi
fi fi

View file

@ -1,5 +1,5 @@
# prompt # prompt
if [ -z ${SSH_TTY} ] ; then if [ -z "${SSH_TTY}" ] ; then
PROMPT=$'%{\e[01;32m%}%n@%m %{\e[01;34m%}%~ %(?..%{\e[01;31m%})%(!.#.$) %{\e[00;00m%}' PROMPT=$'%{\e[01;32m%}%n@%m %{\e[01;34m%}%~ %(?..%{\e[01;31m%})%(!.#.$) %{\e[00;00m%}'
RPROMPT=$'%1(j.%{\e[00;36m%}[%j].)%{\e[01;33m%}[%t]%{\e[00;00m%}' RPROMPT=$'%1(j.%{\e[00;36m%}[%j].)%{\e[01;33m%}[%t]%{\e[00;00m%}'
else else