Move them from init_env_Darwin to their own functions in the new zsh/func/darwin directory.
11 lines
232 B
Text
11 lines
232 B
Text
# Eryn Wells <eryn@erynwells.me>
|
|
|
|
darwin-hardware-model() {
|
|
if [[ -z "$darwin_hardware_model" ]]; then
|
|
darwin_hardware_model=`sysctl -n hw.model`
|
|
fi
|
|
return "$darwin_hardware_model"
|
|
}
|
|
|
|
darwin-hardware-model "$@"
|
|
|