4 ms·
Indent with four spaces: function remac { sudo /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z sudo ifconfig en0 et
by omaranto 8y ago
Indent with four spaces:
function remac {
sudo /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z
sudo ifconfig en0 ether $(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//')
sudo networksetup -detectnewhardware
echo $(ifconfig en0 | grep ether)
}
EDIT: Two spaces is enough.
- majewsky 8y agoTwo spaces indentation is enough afair.
- omaranto 8y agoLet me check: function remac { sudo /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z sudo ifconfig en0 ether $(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//') sudo networksetup -detectnewhardware echo $(ifconfig en0 | grep ether) } EDIT: Yep! Two is enough. Thanks!
- yakshaving_jgt 8y agoAh, I somehow missed that. Thanks!