Skip to content

Commit

Permalink
feat: update wifi SSID grabber for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
cybardev committed Oct 24, 2024
1 parent 9ed7cd8 commit 53fc145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cutefetch
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ init() {
readonly kern="$(uname) $(uname -r)"
readonly shell="$(basename "$SHELL")"
readonly res="$(get_res_mac)"
readonly net="$(/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | awk -F' SSID: ' '/ SSID: / {print $2}')"
readonly net="$(ipconfig getsummary en0 | grep "[^B]SSID" | cut -f2 -d ":" | xargs)"
;;
*)
echo "We do not support $1 yet."
Expand Down

0 comments on commit 53fc145

Please sign in to comment.