X-Git-Url: http://id.pley.net/dotfiles.git/blobdiff_plain/589397e8ba9ae862c841ac6c075207efe1dc355e..91472a5c8a7df18b103566cc62fadaa397b115da:/zsh_webkit_login diff --git a/zsh_webkit_login b/zsh_webkit_login index 5e949cb..dfa4dfe 100644 --- a/zsh_webkit_login +++ b/zsh_webkit_login @@ -1,9 +1,9 @@ -#/bin/zsh +#!/bin/zsh 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_DIR/OpenSource/WebKitBuild if [[ "$OLD_WEBKIT_DIR" == "" ]]; then 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 @@ -22,10 +22,12 @@ _switchto() { _arguments '1:dir:_webkit_dirs' } compdef _switchto switchto -if [[ $( has subl ) == 'yes' ]]; then +if [[ $( has sedit ) == 'yes' ]]; then + export GUI_EDITOR="sedit -w" +elif [[ $( has subl ) == 'yes' ]]; then export GUI_EDITOR="subl -w" elif [[ $( has bbedit ) == 'yes' ]]; then - export GUI_EDITOR="bbedit -w" + export GUI_EDITOR="bbedit" elif [[ $( has mate_wait ) == 'yes' ]]; then export GUI_EDITOR="mate_wait" else