1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # 30_hostname.zprofile: Initialize hostname settings
4 # Setup "HOSTNAME" variable
5 [[ -z "$HOSTNAME" ]] && HOSTNAME=$( hostname )
8 # Setup "SHORT_HOST" variable
9 [[ "$OSTYPE" = darwin* ]] \
10 && SHORT_HOST=$(scutil --get ComputerName 2>/dev/null)
11 [[ -z "$SHORT_HOST" ]] && SHORT_HOST=${HOST/.*/}