mirror of
https://github.com/tommytran732/macOS-Setup-Script
synced 2024-11-22 18:01:33 -05:00
Compare commits
2 Commits
dd4ee3fef4
...
9b0e1f833b
Author | SHA1 | Date | |
---|---|---|---|
9b0e1f833b | |||
cdcd598dee |
@ -1,3 +1,4 @@
|
||||
#!/bin/zsh
|
||||
# shellcheck disable=SC1071
|
||||
|
||||
echo 'butane="docker run -i --rm --pull always quay.io/coreos/butane:release --pretty --strict <"' >> ~/.zshrc
|
@ -1,4 +1,5 @@
|
||||
#!/bin/zsh
|
||||
# shellcheck disable=SC1071
|
||||
|
||||
# Comment this line out if you don't have Touch ID
|
||||
awk 'NR==2 {print "auth sufficient pam_tid.so"} 1' /etc/pam.d/sudo | sudo tee /etc/pam.d/sudo
|
||||
@ -15,9 +16,6 @@ sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf
|
||||
#Enable Safari debug menu
|
||||
defaults write com.apple.Safari IncludeInternalDebugMenu 1
|
||||
|
||||
# Disable cupsd
|
||||
sudo launchctl remove /System/Library/LaunchDaemons/org.cups.cupsd.plist
|
||||
|
||||
#Install Brew
|
||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/$(USERS)/.zprofile
|
||||
@ -46,4 +44,4 @@ sudo chmod 744 '/Library/Tomster Corporation/scripts/apply_prefs.sh'
|
||||
curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/macOS/Managed%20Preferences/com.microsoft.Edge.plist | sudo tee '/Library/Tomster Corporation/prefs/com.microsoft.Edge.plist'
|
||||
curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/macOS/Preferences/com.microsoft.Edge.plist | sudo tee /Library/Preferences/com.microsoft.Edge.plist
|
||||
curl https://raw.githubusercontent.com/TommyTran732/macOS-Setup-Script/main/etc/Library/LaunchDaemons/io.tommytran.prefs.plist | sudo tee /etc/Library/LaunchDaemons/io.tommytran.prefs.list
|
||||
sudo launchctl load /Library/LaunchDaemons/io.tommytran.prefs.plist
|
||||
sudo launchctl load -w /Library/LaunchDaemons/io.tommytran.prefs.plist
|
@ -1,4 +1,5 @@
|
||||
#!/bin/zsh
|
||||
# shellcheck disable=SC1071
|
||||
|
||||
/bin/sleep 5
|
||||
/bin/cp -r '/Library/Tomster Corporation/prefs/' '/Library/Managed Preferences/'
|
@ -1,3 +1,6 @@
|
||||
#!/bin/zsh
|
||||
# shellcheck disable=SC1071
|
||||
|
||||
echo "gpgconf --launch gpg-agent" >> ~/.zshrc
|
||||
echo "export SSH_AUTH_SOCK=$HOME/.gnupg/S.gpg-agent.ssh" >> ~/.zshrc
|
||||
echo "enable-ssh-support" >> ~/.gnupg/gpg-agent.conf
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/bin/zsh
|
||||
# shellcheck disable=SC1071
|
||||
|
||||
# Comment this line out if you don't have Touch ID
|
||||
awk 'NR==2 {print "auth sufficient pam_tid.so"} 1' /etc/pam.d/sudo | sudo tee /etc/pam.d/sudo
|
||||
@ -15,9 +16,6 @@ sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf
|
||||
# Enable Safari debug menu
|
||||
defaults write com.apple.Safari IncludeInternalDebugMenu 1
|
||||
|
||||
# Disable cupsd
|
||||
sudo launchctl remove /System/Library/LaunchDaemons/org.cups.cupsd.plist
|
||||
|
||||
umask 022
|
||||
|
||||
# Setup Edge Enterprise Policies
|
||||
@ -27,4 +25,4 @@ sudo chmod 744 '/Library/Tomster Corporation/scripts/apply_prefs.sh'
|
||||
curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/macOS/Managed%20Preferences/com.microsoft.Edge.plist | sudo tee '/Library/Tomster Corporation/prefs/com.microsoft.Edge.plist'
|
||||
curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/macOS/Preferences/com.microsoft.Edge.plist | sudo tee /Library/Preferences/com.microsoft.Edge.plist
|
||||
curl https://raw.githubusercontent.com/TommyTran732/macOS-Setup-Script/main/etc/Library/LaunchDaemons/io.tommytran.prefs.plist | sudo tee /etc/Library/LaunchDaemons/io.tommytran.prefs.list
|
||||
sudo launchctl load /Library/LaunchDaemons/io.tommytran.prefs.plist
|
||||
sudo launchctl load -w /Library/LaunchDaemons/io.tommytran.prefs.plist
|
Loading…
Reference in New Issue
Block a user