dotfiles/zsh/func/darwin/darwin-hardware-model
Eryn Wells 6276b5f40e [zsh] Move Darwin $OSBUILD, $OSVERSION, and $HWMODEL
Move them from init_env_Darwin to their own functions in the new zsh/func/darwin
directory.
2023-03-28 10:50:59 -07:00

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 "$@"