diff --git a/functions.d/ambient_get_ssid.fish b/functions.d/ambient_get_ssid.fish index cfc949b..bdc9684 100644 --- a/functions.d/ambient_get_ssid.fish +++ b/functions.d/ambient_get_ssid.fish @@ -3,7 +3,7 @@ function ambient_get_ssid if test (uname) = "Darwin" set -g ambient_ssid (/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | sed -n 's/^ *SSID: //p') else - set -g ambient_ssid (iw dev | grep ssid | awk '{print $2}') + set -g ambient_ssid (iw dev | grep ssid | sed -n 's/^\s*ssid //p') end end echo $ambient_ssid