Difference between revisions of "IT-OS-Admin-macOS"

From wiki.samerhijazi.net
Jump to navigation Jump to search
(Xcode)
(Settings)
Line 30: Line 30:
 
</pre>
 
</pre>
  
=Settings=
+
=Settings-A=
 
* https://macos-defaults.com/
 
* https://macos-defaults.com/
 
* https://lupin3000.github.io/macOS/defaults/
 
* https://lupin3000.github.io/macOS/defaults/
Line 46: Line 46:
 
----
 
----
 
sudo spctl –master-disable      ### open from the unidentified developer  
 
sudo spctl –master-disable      ### open from the unidentified developer  
 +
</pre>
 +
=Setting-B=
 +
<pre class="code">
 +
sudo xattr -d com.apple.quarantine ./FileName.dmg
 
</pre>
 
</pre>

Revision as of 13:42, 4 December 2023

Ref.

Top Terminal Keyboard shortcuts

  • Show hidden files: (Command + Shift + .)
  • New window: (Command-N)
  • New tab: (Command-T)
  • Move insertion point to the beginning: (Control-A)
  • Move insertion point to the end: (Control-E)
  • []: option + 5/6
  • {} : option + 8/9
  • ~: option + n
  • Force Quit: Option + Command + Esc.
  • Mark massage as Read: command + T

Xcode

xcodebuild -version
xcode-select -p
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install

brew

HOMEBREW_NO_INSTALL_CLEANUP=false
HOMEBREW_NO_ENV_HINTS=true

Settings-A

osascript -e 'id of app "Terminal"'
defaults write com.apple.Terminal NSRequiresAquaSystemAppearance -bool no
defaults write com.apple.TextEdit NSRequiresAquaSystemAppearance -bool no
defaults write -g NSRequiresAquaSystemAppearance -bool Yes
defaults write -g NSRequiresAquaSystemAppearance -bool No
----
defaults write com.apple.Dock
defaults write com.apple.dock "orientation" -string "bottom" && killall Dock
----
sudo spctl –master-disable       ### open from the unidentified developer 

Setting-B

sudo xattr -d com.apple.quarantine ./FileName.dmg