X-Git-Url: http://id.pley.net/dotfiles.git/blobdiff_plain/5a2aa4d6a19afcbc19ced19b67d2ad4f99b9de5a..4fda9c133d174a4cddb03b4a2f03694e77ec1a77:/zsh_webkit_login?ds=sidebyside diff --git a/zsh_webkit_login b/zsh_webkit_login index 589a236..08bb408 100644 --- a/zsh_webkit_login +++ b/zsh_webkit_login @@ -4,10 +4,13 @@ switchto() { export OLD_WEBKIT_DIR=$WEBKIT_DIR export WEBKIT_DIR=~/Projects/WebKit.$1 export WEBKIT_OUTPUTDIR=$WEBKIT_DIR/OpenSource/WebKitBuild + export PERP_BUILD_PATH=$WEBKIT_OUTPUTDIR if [[ "$OLD_WEBKIT_DIR" == "" ]]; then - export PATH=$PATH:$WEBKIT_DIR/OpenSource/Tools:$WEBKIT_DIR/OpenSource/Tools/Scripts:$WEBKIT_DIR/Internal/Tools/Scripts + export PATH=$PATH:$WEBKIT_DIR/Internal/Tools/Scripts:$WEBKIT_DIR/OpenSource/Tools:$WEBKIT_DIR/OpenSource/Tools/Scripts + export CDPATH=$CDPATH:$WEBKIT_DIR/OpenSource:$WEBKIT_DIR/OpenSource/Source:$WEBKIT_DIR/Internal else export PATH=$(echo $PATH | sed -e "s;$OLD_WEBKIT_DIR;$WEBKIT_DIR;g") + export CDPATH=$(echo $CDPATH | sed -e "s;$OLD_WEBKIT_DIR;$WEBKIT_DIR;g") fi export OLD_WEBKIT_DIR= @@ -20,7 +23,9 @@ _switchto() { _arguments '1:dir:_webkit_dirs' } compdef _switchto switchto -if [[ $( has bbedit ) == 'yes' ]]; then +if [[ $( has subl ) == 'yes' ]]; then + export GUI_EDITOR="subl -w" +elif [[ $( has bbedit ) == 'yes' ]]; then export GUI_EDITOR="bbedit -w" elif [[ $( has mate_wait ) == 'yes' ]]; then export GUI_EDITOR="mate_wait"