aboutsummaryrefslogtreecommitdiff
path: root/functions/utilities.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'functions/utilities.zsh')
-rwxr-xr-xfunctions/utilities.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/utilities.zsh b/functions/utilities.zsh
index 4d731eb4..dea4d3bd 100755
--- a/functions/utilities.zsh
+++ b/functions/utilities.zsh
@@ -97,7 +97,7 @@ segment_in_use() {
function _p9k_parse_ip() {
local desiredInterface=${1:-'^[^ ]+'}
- if [[ $OS == OSX ]]; then
+ if [[ $_p9k_os == OSX ]]; then
[[ -x /sbin/ifconfig ]] || return
local rawInterfaces && rawInterfaces="$(/sbin/ifconfig -l 2>/dev/null)" || return
local -a interfaces=(${(A)=rawInterfaces})