[zsh] Give all the init-env functions consistent names

This commit is contained in:
Eryn Wells 2024-09-24 09:25:09 -07:00
parent e5505a7a69
commit f2144fcbed
8 changed files with 28 additions and 52 deletions

17
zsh/func/init-env-darwin Normal file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env zsh
# Eryn Wells <eryn@erynwells.me>
function init-env-darwin
{
local -r xcode_library="$HOME/Library/Developer/Xcode"
if [[ -d "$xcode_library" ]]; then
export XCODE_LIBRARY="$xcode_library"
export XCODE_DERIVED_DATA="$XCODE_LIBRARY/DerivedData"
export XCODE_INSTALLS="$XCODE_LIBRARY/Installs"
export dd="$XCODE_DERIVED_DATA"
fi
export df=~/.dotfiles
}
init-env-darwin "$@"