From 05bf6a58a2d4867afc910fc5fbac2d9ad3c3e584 Mon Sep 17 00:00:00 2001 From: Chris Martin Date: Tue, 5 Nov 2013 08:37:34 -0800 Subject: [PATCH 1/6] first pass at some useful xcode stuff --- custom/xcode.plugin.zsh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 custom/xcode.plugin.zsh diff --git a/custom/xcode.plugin.zsh b/custom/xcode.plugin.zsh new file mode 100644 index 000000000..0ccdf6713 --- /dev/null +++ b/custom/xcode.plugin.zsh @@ -0,0 +1,13 @@ +function xc { + xcode_proj=`find . -name "*.xc*" -d 1 | sort -r | head -1` + if [[ `echo -n $xcode_proj | wc -m` == 0 ]] + then + echo "No xcworkspace/xcodeproj file found in the current directory." + else + echo "Found $xcode_proj" + open "$xcode_proj" + fi +} + +alias xcb='xcodebuild' +alias xcs='xcode-select -p' From 3ccb27b70efd71c393913b0a5be1c45213309de0 Mon Sep 17 00:00:00 2001 From: Chris Martin Date: Tue, 5 Nov 2013 10:42:19 -0800 Subject: [PATCH 2/6] fix the param to print info --- custom/xcode.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom/xcode.plugin.zsh b/custom/xcode.plugin.zsh index 0ccdf6713..5736c760b 100644 --- a/custom/xcode.plugin.zsh +++ b/custom/xcode.plugin.zsh @@ -10,4 +10,4 @@ function xc { } alias xcb='xcodebuild' -alias xcs='xcode-select -p' +alias xcs='xcode-select --print-path' From 2dcd950218dc4fb651af8d0bbf06ad1669f178bc Mon Sep 17 00:00:00 2001 From: Chris Martin Date: Tue, 5 Nov 2013 11:12:06 -0800 Subject: [PATCH 3/6] added function to swith path, renamed print --- custom/xcode.plugin.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/custom/xcode.plugin.zsh b/custom/xcode.plugin.zsh index 5736c760b..c10d89d96 100644 --- a/custom/xcode.plugin.zsh +++ b/custom/xcode.plugin.zsh @@ -9,5 +9,9 @@ function xc { fi } +function xcsel { + sudo xcode-select --switch "$*" +} + alias xcb='xcodebuild' -alias xcs='xcode-select --print-path' +alias xcp='xcode-select --print-path' From f45626a57bbd80825745fbd837eb966f4f0b524a Mon Sep 17 00:00:00 2001 From: Chris Martin Date: Tue, 5 Nov 2013 11:24:21 -0800 Subject: [PATCH 4/6] moved to the plugin folder --- {custom => plugins/xcode}/xcode.plugin.zsh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {custom => plugins/xcode}/xcode.plugin.zsh (100%) diff --git a/custom/xcode.plugin.zsh b/plugins/xcode/xcode.plugin.zsh similarity index 100% rename from custom/xcode.plugin.zsh rename to plugins/xcode/xcode.plugin.zsh From ad9bf4659ee72153a10c70869a1b210a6df4f4b2 Mon Sep 17 00:00:00 2001 From: Shady Date: Thu, 7 Nov 2013 20:26:38 -0800 Subject: [PATCH 5/6] # This is a combination of 3 commits. # The first commit's message is: some useful xcode command line stuff # This is the 2nd commit message: fix the param to print info # This is the 3rd commit message: added function to swith path, renamed print --- custom/xcode.plugin.zsh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 custom/xcode.plugin.zsh diff --git a/custom/xcode.plugin.zsh b/custom/xcode.plugin.zsh new file mode 100644 index 000000000..e5a5aa321 --- /dev/null +++ b/custom/xcode.plugin.zsh @@ -0,0 +1,18 @@ +function xc { + xcode_proj=`find . -name "*.xc*" -d 1 | sort -r | head -1` + + if [[ `echo -n $xcode_proj | wc -m` == 0 ]] + then + echo "No xcworkspace/xcodeproj file found in the current directory." + else + echo "Found $xcode_proj" + open "$xcode_proj" + fi +} + +function xcsel { + sudo xcode-select --switch "$*" +} + +alias xcb='xcodebuild' +alias xcp='xcode-select --print-path' From f296fb12026898b1cc5d881b002f6f31132454a4 Mon Sep 17 00:00:00 2001 From: Shady Date: Sat, 9 Nov 2013 20:52:03 -0800 Subject: [PATCH 6/6] rmoved custom file --- custom/xcode.plugin.zsh | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 custom/xcode.plugin.zsh diff --git a/custom/xcode.plugin.zsh b/custom/xcode.plugin.zsh deleted file mode 100644 index e5a5aa321..000000000 --- a/custom/xcode.plugin.zsh +++ /dev/null @@ -1,18 +0,0 @@ -function xc { - xcode_proj=`find . -name "*.xc*" -d 1 | sort -r | head -1` - - if [[ `echo -n $xcode_proj | wc -m` == 0 ]] - then - echo "No xcworkspace/xcodeproj file found in the current directory." - else - echo "Found $xcode_proj" - open "$xcode_proj" - fi -} - -function xcsel { - sudo xcode-select --switch "$*" -} - -alias xcb='xcodebuild' -alias xcp='xcode-select --print-path'