mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
add xx command to Xcode plugin. Allows quick opening of files in Xcode. (#6812)
This commit is contained in:
parent
ebda8af870
commit
6ace3cd18d
2 changed files with 17 additions and 2 deletions
|
|
@ -27,6 +27,17 @@ function xc {
|
|||
fi
|
||||
}
|
||||
|
||||
# Opens a file or files in the Xcode IDE. Multiple files are opened in multi-file browser
|
||||
# original author: @possen
|
||||
function xx {
|
||||
if [[ $# == 0 ]]; then
|
||||
echo "Specify file(s) to open in xcode."
|
||||
return 1
|
||||
fi
|
||||
echo "${xcode_files}"
|
||||
open -a "Xcode.app" "$@"
|
||||
}
|
||||
|
||||
# "XCode-SELect by Version" - select Xcode by just version number
|
||||
# Uses naming convention:
|
||||
# - different versions of Xcode are named Xcode-<version>.app or stored
|
||||
|
|
@ -70,7 +81,7 @@ function xcselv {
|
|||
|
||||
function _omz_xcode_print_xcselv_usage {
|
||||
cat << EOF >&2
|
||||
Usage:
|
||||
Usage:
|
||||
xcselv <version>
|
||||
xcselv [options]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue