Created
July 18, 2012 07:26
-
-
Save diasjorge/3134807 to your computer and use it in GitHub Desktop.
xing.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
complete -C `which xing_autocompletion` -o default xing | |
xing_dir="/Users/jorge.dias/development/xing" | |
function cx () { | |
if [ -n $1 ]; then | |
cd "$xing_dir/$1" | |
else | |
cd $xing_dir | |
fi | |
} | |
function _cx() | |
{ | |
local cur | |
COMPREPLY=() | |
cur=${COMP_WORDS[COMP_CWORD]} | |
COMPREPLY=($( compgen -W "$(ls -A1 $xing_dir | xargs echo)" -- $cur ) ) | |
} | |
complete -F _cx -o default cx | |
export EVENT_NOKQUEUE=1 | |
function upload_gem() { | |
gem_file=$1 | |
echo "uploading $gem_file" | |
curl -F file=@${gem_file} http://gems.xing.com/upload | |
} | |
function upload_gem_cache() { | |
gems=`ls $1/*.gem` | |
for g in $gems; do upload_gem "$g"; echo ""; done | |
} | |
alias ss="xing sandbox sync" | |
export CUCUMBER_DEBUG=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment