From 3f84b01bf8d91765037a33b6aa83246c6060dc66 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Wed, 12 Jan 2011 18:18:12 -0500 Subject: zshrc looks for a local zsh config which holds env-specific settings only set page to most if most is installed --- zshrc | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/zshrc b/zshrc index 2bc13e1..2811ee5 100644 --- a/zshrc +++ b/zshrc @@ -22,14 +22,22 @@ source $ZSH/oh-my-zsh.sh # Customize to your needs... -# MacPorts Installer addition on 2010-04-13_at_22:39:42: adding an appropriate PATH variable for use with MacPorts. -export PATH=/opt/local/bin:/opt/local/sbin:$PATH -# Finished adapting your PATH environment variable for use with MacPorts. - -export PATH=/usr/local/texlive/2009basic/bin/universal-darwin:$PATH -export PATH=$HOME/bin:$PATH - export LSCOLORS="exgxbxdxcxegedxbxgxcxd" -export PAGER=most export EDITOR=vim + +bindkey "\e[3~" delete-char + +if [ -e $HOME/.zshrc-local ]; then + source $HOME/.zshrc-local +fi + +# runs after local because 'most' isn't standard, +# and macports will be set up in local +if [[ -e $(which most) ]]; then + export PAGER=most +fi + +# run after local because local because user bin should +# take absolute priority +export PATH=$HOME/bin:$PATH -- cgit v1.2.3