mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
# 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
This commit is contained in:
parent
e30a1243dc
commit
ad9bf4659e
1 changed files with 18 additions and 0 deletions
18
custom/xcode.plugin.zsh
Normal file
18
custom/xcode.plugin.zsh
Normal file
|
|
@ -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'
|
||||
Loading…
Add table
Add a link
Reference in a new issue