[zsh] Add init_xcode and call it from darwin_init_once; add ~df path to dotfiles
This commit is contained in:
parent
4d3a7e4017
commit
6c622b0aaf
3 changed files with 18 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
autoload darwin_icloud_drive_path
|
||||
autoload darwin_configure_screenshots_directory
|
||||
autoload init_xcode
|
||||
|
||||
function darwin_init_once
|
||||
{
|
||||
|
@ -14,6 +15,8 @@ function darwin_init_once
|
|||
|
||||
# See https://techstuffer.com/this-app-is-damaged-error-macos-sierra/
|
||||
sudo spctl --master-disable
|
||||
|
||||
init_xcode
|
||||
}
|
||||
|
||||
darwin_init_once "$@"
|
||||
|
|
|
@ -8,3 +8,5 @@ export XCODE_LIBRARY="$HOME/Library/Developer/Xcode"
|
|||
export XCODE_DERIVED_DATA="$XCODE_LIBRARY/DerivedData"
|
||||
export XCODE_INSTALLS="$XCODE_LIBRARY/Installs"
|
||||
export dd="$XCODE_DERIVED_DATA"
|
||||
|
||||
export df=~/.dotfiles
|
||||
|
|
13
zsh/func/init_xcode
Normal file
13
zsh/func/init_xcode
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Eryn Wells <eryn@erynwells.me>
|
||||
# vim: ft=zsh:
|
||||
|
||||
function init_xcode
|
||||
{
|
||||
if [[ -d "~df/Xcode/IDETemplateMacros.plist" ]]; then
|
||||
echo "Copying IDETemplateMacros.plist"
|
||||
mkdir -p ~/Library/Developer/Xcode/UserData
|
||||
cp ~df/Xcode/IDETemplateMacros.plist ~/Library/Developer/Xcode/UserData
|
||||
fi
|
||||
}
|
||||
|
||||
init_xcode "%@"
|
Loading…
Add table
Add a link
Reference in a new issue