From 1b67396957fc2337d4417c551349a922e5d6369a Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Sun, 30 Nov 2008 22:01:57 -0600 Subject: [PATCH 01/15] various changes of various flavors --- Xresources | 3 +++ vimrc | 16 ++++++++-------- zshrc | 24 ++++++++++++++++++------ 3 files changed, 29 insertions(+), 14 deletions(-) diff --git a/Xresources b/Xresources index 5f4566d..c7557d7 100644 --- a/Xresources +++ b/Xresources @@ -88,3 +88,6 @@ URxvt*color12: #729FCF URxvt*color13: #AD7FA8 URxvt*color14: #34E2E2 URxvt*color15: #EEEEEC + +/* Rxvt */ +Rxvt*termName: rxvt diff --git a/vimrc b/vimrc index 2e5b7c7..04c3a7f 100644 --- a/vimrc +++ b/vimrc @@ -274,18 +274,18 @@ imap :silent set number! " Don't force column 0 for # inoremap # X# -" Force to be backspace except when in interix mode -" because interix uses that for forward delete... -" and always accept as a backspace key -" Let interix use ^[[U for end and ^[[H for home +" Always map to backspace +" Both interix and cons use C-? as forward delete, +" besides those two exceptions, always set it to backspace +" Also let interix use ^[[U for end and ^[[H for home map map! -if (&term !~ "interix") - map - map! -else +if (&term =~ "interix") map  map  +elseif (&term !~ "cons") + map + map! endif " Python specific stuff diff --git a/zshrc b/zshrc index a2b3659..82b1ba5 100644 --- a/zshrc +++ b/zshrc @@ -86,19 +86,25 @@ export LESS=' -R' # aliases alias cd..='cd ..' +# handles per OS aliases, fixes a few terms case `uname -s` in Linux|CYGWIN*) alias ls="ls -h --color=auto" alias grep='grep -d skip --color=auto' ;; FreeBSD|Darwin|DragonFly) - # we must lie to the mac, for it is dumb export LSCOLORS=ExGxFxDxCxDxDxHbaDacec alias ls="ls -Gh" alias grep='grep -d skip --color=auto' ;; Interix) alias ls="ls --color" + + # sorta hacky, but I cannot find a better way to do this :/ + if [[ `which infocmp` = /usr/local/bin/infocmp ]] ; then + export TERMINFO=/usr/local/share/terminfo + export TERM=$TERM + fi ;; SunOS) if (which gls &> /dev/null) ; then @@ -169,6 +175,10 @@ case $TERM in bindkey '^[[5D' emacs-backward-word bindkey '^[OC' emacs-forward-word bindkey '^[OD' emacs-backward-word + bindkey '^[Oc' emacs-forward-word + bindkey '^[Od' emacs-backward-word + bindkey '^[[c' emacs-forward-word + bindkey '^[[d' emacs-backward-word ;; linux) bindkey '^[[1~' beginning-of-line @@ -184,11 +194,17 @@ case $TERM in bindkey '^[[7~' beginning-of-line bindkey '^[[8~' end-of-line ;; + cons*) + bindkey '^[[H' beginning-of-line + bindkey '^[[F' end-of-line + bindkey '^?' delete-char + ;; interix) bindkey '^[[H' beginning-of-line bindkey '^[[U' end-of-line + bindkey '^?' delete-char ;; - cygwin) + cygwin*) bindkey '^[[1~' beginning-of-line bindkey '^[[4~' end-of-line ;; @@ -208,9 +224,6 @@ precmd() { local termtitle - ## Changing IFS breaks a few things otherwise, especially clear-zle-screen - IFS=$' \t\n' - termtitle=$(print -P "%n@%m") title zsh "$termtitle" } @@ -267,7 +280,6 @@ function title # Use these two for GNU Screen: print -nR $'\ek'$1$'\e'"\\" shift -# print -nR $'\e]0;'$*$'\a' print -nR $'\e_screen \005 | '$*$'\e'"\\" ;; xterm*|rxvt*|cygwin|interix) From 4c7d42336bc1d37a11f7379721374c5a22c46f67 Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 2 Dec 2008 20:29:57 -0600 Subject: [PATCH 02/15] updated keybindings style --- zshrc | 62 +++++++++++++++++++++++++++++------------------------------ 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/zshrc b/zshrc index d8d07d5..4c21885 100644 --- a/zshrc +++ b/zshrc @@ -151,48 +151,48 @@ bindkey ' ' magic-space bindkey -M emacs '\ee' edit-command-line -bindkey -M emacs '' history-incremental-search-forward -bindkey -M emacs '' history-incremental-search-backward +bindkey -M emacs '^P' history-incremental-search-forward +bindkey -M emacs '^N' history-incremental-search-backward case $TERM in xterm*) - bindkey '^[[H' beginning-of-line - bindkey '^[[F' end-of-line - bindkey '^[OH' beginning-of-line - bindkey '^[OF' end-of-line - bindkey '^[[1~' beginning-of-line - bindkey '^[[4~' end-of-line - bindkey '^[[7~' beginning-of-line - bindkey '^[[8~' end-of-line - bindkey '^[[3~' delete-char - bindkey '^[[1;5C' emacs-forward-word - bindkey '^[[1;5D' emacs-backward-word - bindkey '^[[5C' emacs-forward-word - bindkey '^[[5D' emacs-backward-word - bindkey '^[OC' emacs-forward-word - bindkey '^[OD' emacs-backward-word + bindkey '\e[H' beginning-of-line + bindkey '\e[F' end-of-line + bindkey '\eOH' beginning-of-line + bindkey '\eOF' end-of-line + bindkey '\e[1~' beginning-of-line + bindkey '\e[4~' end-of-line + bindkey '\e[7~' beginning-of-line + bindkey '\e[8~' end-of-line + bindkey '\e[3~' delete-char + bindkey '\e[1;5C' emacs-forward-word + bindkey '\e[1;5D' emacs-backward-word + bindkey '\e[5C' emacs-forward-word + bindkey '\e[5D' emacs-backward-word + bindkey '\eOC' emacs-forward-word + bindkey '\eOD' emacs-backward-word ;; linux) - bindkey '^[[1~' beginning-of-line - bindkey '^[[4~' end-of-line - bindkey '^[[3~' delete-char + bindkey '\e[1~' beginning-of-line + bindkey '\e[4~' end-of-line + bindkey '\e[3~' delete-char ;; rxvt*) - bindkey '^[[c' emacs-forward-word - bindkey '^[[d' emacs-backward-word - bindkey '^[Oc' emacs-forward-word - bindkey '^[Od' emacs-backward-word - bindkey '^[[3~' delete-char - bindkey '^[[7~' beginning-of-line - bindkey '^[[8~' end-of-line + bindkey '\e[c' emacs-forward-word + bindkey '\e[d' emacs-backward-word + bindkey '\eOc' emacs-forward-word + bindkey '\eOd' emacs-backward-word + bindkey '\e[3~' delete-char + bindkey '\e[7~' beginning-of-line + bindkey '\e[8~' end-of-line ;; interix) - bindkey '^[[H' beginning-of-line - bindkey '^[[U' end-of-line + bindkey '\e[H' beginning-of-line + bindkey '\e[U' end-of-line ;; cygwin) - bindkey '^[[1~' beginning-of-line - bindkey '^[[4~' end-of-line + bindkey '\e[1~' beginning-of-line + bindkey '\e[4~' end-of-line ;; esac From a3de9e653034a5d7ef099ac53cbc6dac3e91e30c Mon Sep 17 00:00:00 2001 From: David Alexander Majnemer Date: Tue, 2 Dec 2008 23:28:52 -0600 Subject: [PATCH 03/15] add more rxvt support --- vimrc | 3 --- zshrc | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vimrc b/vimrc index 2e5b7c7..1fd58f1 100644 --- a/vimrc +++ b/vimrc @@ -131,9 +131,6 @@ if has('eval') elseif &t_Co == 256 set background=light " We use a light background here call LoadColorScheme("wombat:inkpot") " Set the colorscheme - elseif &t_Co == 88 - set background=dark " We use a dark background here - call LoadColorScheme("inkpot:zellner") " Set the colorscheme else set background=dark " We use a dark background here call LoadColorScheme("zellner") " Set the colorscheme diff --git a/zshrc b/zshrc index d8d07d5..d886923 100644 --- a/zshrc +++ b/zshrc @@ -73,6 +73,9 @@ if (which infocmp &> /dev/null) ; then xterm*) ( infocmp $TERM &> /dev/null ) || export TERM=xterm ;; + rxvt*) + ( infocmp $TERM &> /dev/null ) || export TERM=rxvt + ;; esac fi From 3226d4f06bf36dd3d6e9bc506e927fd0a740b32f Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Wed, 3 Dec 2008 02:47:37 -0600 Subject: [PATCH 04/15] nice implementation of terminal fallback --- zshrc | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/zshrc b/zshrc index 788e383..c1f5e0d 100644 --- a/zshrc +++ b/zshrc @@ -68,16 +68,28 @@ elif ( which gdircolors &> /dev/null ) ; then fi # terminal fallback stuff -if (which infocmp &> /dev/null) ; then - case "${TERM}" in +function fix_term +{ + case "$1" in + xterm) + ( ( infocmp $1 &> /dev/null ) && echo "xterm" ) || echo "vt100" + ;; + rxvt) + ( ( infocmp $1 &> /dev/null ) && echo "rxvt" ) || fix_term xterm + ;; xterm*) - ( infocmp $TERM &> /dev/null ) || export TERM=xterm + ( ( infocmp $1 &> /dev/null ) && echo $1 ) || fix_term xterm ;; rxvt*) - ( infocmp $TERM &> /dev/null ) || export TERM=rxvt + ( ( infocmp $1 &> /dev/null ) && echo $1 ) || fix_term rxvt + ;; + *) + ( ( infocmp $1 &> /dev/null ) && echo $1 ) || echo "vt100" ;; esac -fi +} + +export TERM=$(fix_term $TERM) ( which lesspipe &> /dev/null ) && eval $(lesspipe) export LESS=' -R' From 383fcaa867d4a5d230b44c055a3128b5d0599433 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 4 Dec 2008 00:49:06 -0600 Subject: [PATCH 05/15] cleanup zshrc, add support for screen --- screenrc | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ zshrc | 32 +++++++++++++++++++--------- 2 files changed, 86 insertions(+), 10 deletions(-) create mode 100644 screenrc diff --git a/screenrc b/screenrc new file mode 100644 index 0000000..7fb3896 --- /dev/null +++ b/screenrc @@ -0,0 +1,64 @@ +# Originally by Deason +# Modified by Majnematic + +# turn on visual bell +vbell on + +# default scrollback to 5000 lines +defscrollback 5000 + +# turn off visual bell +termcapinfo * vb@ + +# see, it's a bell, get it? +vbell_msg "Ring Ring Ring Ring Ring Ring" + +# make screen even more fun +nethack on + +# mess with bold +attrcolor b ".I" + +# get screen to go for 256 colors +termcapinfo xterm-256color 'Co#256' + +# erase background with current bg color +defbce on + +# turn on utf8 +defutf8 on + +# set the term to 256 color, maybe +term "screen${SCREEN_COLOR}-bce" + +# changes from the default binding " to `windowlist -b', so we don't create +# a new empty window +bind \" windowlist + +# includes window title name in activity/bell messages +activity "Activity in window %n (%t)" +bell_msg "Bell in window %n (%t)" + +# Argh, choosing a hardstatus line is difficult +# This can only be explained by example, but it takes too much damn space. +# The screen man page is actually good documentation for this, but it takes +# a little while to read. Look for "STRING ESCAPES', and that section will +# explain what all this line noise means. +# +# White background, black text, underlined bold current window +#hardstatus alwayslastline "%{= Wk}%-w%50>%{=ub dd}%n %t%?(%u)%?%{-}%+w%<" +# Normal text, underlined bold current window +#hardstatus alwayslastline "%{= dd}%-w%50>%{=ub}%n %t%?(%u)%?%{-}%+w%<" +# Blue background, white text, underlined bold current window +hardstatus alwayslastline "%{= bw}%-w%50>%{=ub dd}%n %t%?(%u)%?%{-}%+w%<" + +startup_message off + +# Show the screen version just for a second +msgwait 1 +version + +# how many seconds a message appears when we don't press any keys +msgwait 2 + +altscreen on diff --git a/zshrc b/zshrc index c1f5e0d..d7af1b8 100644 --- a/zshrc +++ b/zshrc @@ -89,8 +89,21 @@ function fix_term esac } +# sorta hacky, but I cannot find a better way to do this :/ +function fix_terminfo_db +{ + if [[ `which infocmp` = "$1/bin/infocmp" ]] ; then + export TERMINFO="$1/share/terminfo" + export TERM=$TERM + fi +} + export TERM=$(fix_term $TERM) +if [[ $TERM == *256* ]] ; then + export SCREEN_COLOR="-256color" +fi + ( which lesspipe &> /dev/null ) && eval $(lesspipe) export LESS=' -R' @@ -117,11 +130,7 @@ case `uname -s` in Interix) alias ls="ls --color" - # sorta hacky, but I cannot find a better way to do this :/ - if [[ `which infocmp` = /usr/local/bin/infocmp ]] ; then - export TERMINFO=/usr/local/share/terminfo - export TERM=$TERM - fi + fix_terminfo_db "/usr/local" ;; SunOS) if (which gls &> /dev/null) ; then @@ -140,11 +149,7 @@ case `uname -s` in alias locate='glocate' fi - # sorta hacky, but I cannot find a better way to do this :/ - if [[ `which infocmp` = /opt/csw/bin/infocmp ]] ; then - export TERMINFO=/opt/csw/share/terminfo - export TERM=$TERM - fi + fix_terminfo_db "/opt/csw" ;; esac @@ -197,6 +202,13 @@ case $TERM in bindkey '\e[c' emacs-forward-word bindkey '\e[d' emacs-backward-word ;; + screen*) + bindkey '\e[1~' beginning-of-line + bindkey '\e[4~' end-of-line + bindkey '\e[1;5C' emacs-forward-word + bindkey '\e[1;5D' emacs-backward-word + bindkey '\e[3~' delete-char + ;; linux) bindkey '\e[1~' beginning-of-line bindkey '\e[4~' end-of-line From e2356a5696e827d3fa0392240c5ae51f70cd446e Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 4 Dec 2008 00:56:42 -0600 Subject: [PATCH 06/15] more complete screen support --- zshrc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index d7af1b8..7d13972 100644 --- a/zshrc +++ b/zshrc @@ -72,10 +72,13 @@ function fix_term { case "$1" in xterm) - ( ( infocmp $1 &> /dev/null ) && echo "xterm" ) || echo "vt100" + ( ( infocmp $1 &> /dev/null ) && echo $1 ) || echo "vt100" ;; rxvt) - ( ( infocmp $1 &> /dev/null ) && echo "rxvt" ) || fix_term xterm + ( ( infocmp $1 &> /dev/null ) && echo $1 ) || fix_term xterm + ;; + screen) + ( ( infocmp $1 &> /dev/null ) && echo $1 ) || echo "vt100" ;; xterm*) ( ( infocmp $1 &> /dev/null ) && echo $1 ) || fix_term xterm @@ -83,6 +86,12 @@ function fix_term rxvt*) ( ( infocmp $1 &> /dev/null ) && echo $1 ) || fix_term rxvt ;; + screen-256color-bce) + ( ( infocmp $1 &> /dev/null ) && echo $1 ) || fix_term screen-256color + ;; + screen*) + ( ( infocmp $1 &> /dev/null ) && echo $1 ) || fix_term screen + ;; *) ( ( infocmp $1 &> /dev/null ) && echo $1 ) || echo "vt100" ;; From 92d24da06a6e8278d8d6ea1a65fd714d3feb1726 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 4 Dec 2008 01:04:13 -0600 Subject: [PATCH 07/15] cleaned it up even further --- zshrc | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/zshrc b/zshrc index 7d13972..8cae06c 100644 --- a/zshrc +++ b/zshrc @@ -71,24 +71,15 @@ fi function fix_term { case "$1" in - xterm) + xterm|screen) ( ( infocmp $1 &> /dev/null ) && echo $1 ) || echo "vt100" ;; - rxvt) - ( ( infocmp $1 &> /dev/null ) && echo $1 ) || fix_term xterm - ;; - screen) - ( ( infocmp $1 &> /dev/null ) && echo $1 ) || echo "vt100" - ;; - xterm*) + rxvt|xterm*) ( ( infocmp $1 &> /dev/null ) && echo $1 ) || fix_term xterm ;; rxvt*) ( ( infocmp $1 &> /dev/null ) && echo $1 ) || fix_term rxvt ;; - screen-256color-bce) - ( ( infocmp $1 &> /dev/null ) && echo $1 ) || fix_term screen-256color - ;; screen*) ( ( infocmp $1 &> /dev/null ) && echo $1 ) || fix_term screen ;; From 0bb5fbbfc32e0f37c3377e4e7e5cf5c4dd4f3f68 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 8 Dec 2008 10:28:51 -0600 Subject: [PATCH 08/15] add icc, vimrc changes --- zsh/icc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 zsh/icc diff --git a/zsh/icc b/zsh/icc new file mode 100755 index 0000000..0b91e0f --- /dev/null +++ b/zsh/icc @@ -0,0 +1,19 @@ +# are we linux? +case `uname -s` in + Linux) + local iccvars_path=/opt/intel/Compiler/11.0/074/bin/iccvars.sh + if [[ -x $iccvars_path ]] ; then + case `uname -m` in + x86_64) + source $iccvars_path intel64 + ;; + i*86) + source $iccvars_path ia32 + ;; + ia64) + source $iccvars_path ia64 + ;; + esac + fi + ;; +esac From d32a528f6a07a5d1f89e876eafef8de84e2b2ada Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 8 Dec 2008 10:31:12 -0600 Subject: [PATCH 09/15] cscope might live somewhere else --- vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 94dd926..d70b8d0 100644 --- a/vimrc +++ b/vimrc @@ -188,7 +188,7 @@ if has('autocmd') endif " ---- cscope/ctags setup ---- -if has('cscope') && filereadable('/usr/bin/cscope') +if has('cscope') && executable('cscope') == 1 " Search cscope and ctags, in that order set cscopetag set cscopetagorder=0 From 96fef27be2cf16d40c9096ee37854b95ac595fed Mon Sep 17 00:00:00 2001 From: David Alexander Majnemer Date: Mon, 8 Dec 2008 10:40:28 -0600 Subject: [PATCH 10/15] icc update (good for ACM machines) --- zsh/icc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/zsh/icc b/zsh/icc index 0b91e0f..4ba5fa5 100755 --- a/zsh/icc +++ b/zsh/icc @@ -1,8 +1,9 @@ +local iccvars_path; # are we linux? case `uname -s` in Linux) - local iccvars_path=/opt/intel/Compiler/11.0/074/bin/iccvars.sh - if [[ -x $iccvars_path ]] ; then + iccvars_path=/opt/intel/Compiler/11.0/074/bin/iccvars.sh + if [[ -r $iccvars_path ]] ; then case `uname -m` in x86_64) source $iccvars_path intel64 @@ -14,6 +15,11 @@ case `uname -s` in source $iccvars_path ia64 ;; esac + else + iccvars_path=/opt/intel/cc/10.1.018/bin/iccvars.sh + if [[ -r $iccvars_path ]] ; then + source $iccvars_path + fi fi ;; esac From e55dfcd63268787030430b6353ff0d8e49d64adf Mon Sep 17 00:00:00 2001 From: David Alexander Majnemer Date: Thu, 11 Dec 2008 21:19:13 -0600 Subject: [PATCH 11/15] fixed icc --- zsh/icc | 47 +++++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/zsh/icc b/zsh/icc index 4ba5fa5..97e8502 100755 --- a/zsh/icc +++ b/zsh/icc @@ -1,25 +1,24 @@ local iccvars_path; -# are we linux? -case `uname -s` in - Linux) - iccvars_path=/opt/intel/Compiler/11.0/074/bin/iccvars.sh - if [[ -r $iccvars_path ]] ; then - case `uname -m` in - x86_64) - source $iccvars_path intel64 - ;; - i*86) - source $iccvars_path ia32 - ;; - ia64) - source $iccvars_path ia64 - ;; - esac - else - iccvars_path=/opt/intel/cc/10.1.018/bin/iccvars.sh - if [[ -r $iccvars_path ]] ; then - source $iccvars_path - fi - fi - ;; -esac +iccvars_path=$(echo /opt/intel/Compiler/11.*/*/bin/iccvars.sh(On[1])) +if [[ -r $iccvars_path ]] ; then + case `uname -m` in + x86_64) + source $iccvars_path intel64 + ;; + i*86) + source $iccvars_path ia32 + ;; + ia64) + source $iccvars_path ia64 + ;; + esac +else + if [[ `uname -m` == x86_64 ]] ; then + iccvars_path=$(echo /opt/intel/cce/(10|9).*/bin/iccvars.sh(On[1])) + else + iccvars_path=$(echo /opt/intel/cc/(10|9).*/bin/iccvars.sh(On[1])) + fi + if [[ -r $iccvars_path ]] ; then + source $iccvars_path + fi +fi From 0ba4786f0079e15a70edeafca711d2198f6e2e44 Mon Sep 17 00:00:00 2001 From: David Alexander Majnemer Date: Thu, 11 Dec 2008 22:30:27 -0600 Subject: [PATCH 12/15] removed extra keybinding --- zshrc | 1 - 1 file changed, 1 deletion(-) diff --git a/zshrc b/zshrc index 8cae06c..1d6eabd 100644 --- a/zshrc +++ b/zshrc @@ -178,7 +178,6 @@ bindkey ' ' magic-space bindkey -M emacs '\ee' edit-command-line bindkey -M emacs '^P' history-incremental-search-forward -bindkey -M emacs '^N' history-incremental-search-backward case $TERM in xterm*) From 1a4de233ec4494c931fa42f1dc6ddd769d51e28d Mon Sep 17 00:00:00 2001 From: David Alexander Majnemer Date: Thu, 11 Dec 2008 22:34:02 -0600 Subject: [PATCH 13/15] finished bindkey cleanup --- zshrc | 2 -- 1 file changed, 2 deletions(-) diff --git a/zshrc b/zshrc index 1d6eabd..e89e0cb 100644 --- a/zshrc +++ b/zshrc @@ -177,8 +177,6 @@ bindkey ' ' magic-space bindkey -M emacs '\ee' edit-command-line -bindkey -M emacs '^P' history-incremental-search-forward - case $TERM in xterm*) bindkey '\e[H' beginning-of-line From 120323926b73277b81b3d42832aeb819da38a6bf Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Thu, 11 Dec 2008 23:04:04 -0600 Subject: [PATCH 14/15] hooray, fixed kill on the mac --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 8cae06c..e690dce 100644 --- a/zshrc +++ b/zshrc @@ -390,7 +390,7 @@ case `uname -s` in zstyle ':completion:*:*:kill:*:processes' command 'ps -U '${USERNAME}' -o pid,args | sed "/ps -U '${USERNAME}' -o pid,args/d"' ;; Darwin) - zstyle ':completion:*:*:kill:*:processes' command 'ps -U '${USERNAME}' -o pid,command | sed "/ps -U '${USERNAME}' -o pid,command/d"' + zstyle ':completion:*:*:kill:*:processes' command 'ps -U '${USERNAME}' -o pid,command | sed "/ps -U '${USERNAME}' -o pid/d"' ;; esac From 78f4d11631b050adac9efbf320fb4cbd3a64d3e8 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Thu, 11 Dec 2008 23:14:34 -0600 Subject: [PATCH 15/15] added source file for mac dev stuff --- zsh/macdev | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 zsh/macdev diff --git a/zsh/macdev b/zsh/macdev new file mode 100755 index 0000000..827f26d --- /dev/null +++ b/zsh/macdev @@ -0,0 +1,10 @@ +local dev_path; +case `uname -s` in + Darwin) + dev_path=/Developer/usr + if [[ -r $dev_path ]] ; then + export PATH=$PATH:$dev_path/bin:$dev_path/sbin + export MANPATH=`manpath -c`:$dev_path/share/man + fi + ;; +esac