Skip to content
Browse files

.osx: Set computer name

  • Loading branch information...
1 parent a168e93 commit fc1966559537aaa91ec0d0dbdd83aae1ce361531 @mathiasbynens committed Jul 27, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 .osx
View
7 .osx
@@ -4,10 +4,15 @@
# General UI/UX #
###############################################################################
+# Set computer name (as done via System Preferences → Sharing)
+scutil --set ComputerName "MathBook Pro"
+scutil --set HostName "MathBook Pro"
+scutil --set LocalHostName "MathBook-Pro"
+
# Menu bar: disable transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
-# Menu bar: show remaining battery time; hide percentage
+# Menu bar: show remaining battery time (on pre-10.8); hide percentage
@sindresorhus
sindresorhus added a note Jul 27, 2012

So this is completely gone in 10.8?

@mathiasbynens
Owner

According to http://www.macpoint.be/mountain-lion-is-coming/ Apple removed the option deliberately and it won’t come back. :(

You could use an app like http://batterytimeapp.com/ or http://www.orange-carb.org/SBM/ if you miss this behavior.

@sindresorhus
sindresorhus added a note Jul 27, 2012

Batterytimeapp might do it. Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
defaults write com.apple.menuextra.battery ShowPercent -string "NO"
defaults write com.apple.menuextra.battery ShowTime -string "YES"

0 comments on commit fc19665

Please sign in to comment.
Something went wrong with that request. Please try again.