[zsh] Give all the init-env functions consistent names
This commit is contained in:
parent
e5505a7a69
commit
f2144fcbed
8 changed files with 28 additions and 52 deletions
17
zsh/func/init-env-darwin
Normal file
17
zsh/func/init-env-darwin
Normal 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 "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue