This commit is contained in:
Brian Zalewski 2023-12-25 05:29:22 +00:00
parent 9ae8a80a4d
commit cd4b269e4e
4 changed files with 17 additions and 44 deletions

View file

@ -1,5 +1,6 @@
xattr -d com.apple.quarantine rclone xattr -d com.apple.quarantine rclone
Create issue about setting up completions - https://github.com/rsteube/lazycomplete Create issue about setting up completions - https://github.com/rsteube/lazycomplete
pw="$(osascript -e 'Tell application "System Events" to display dialog "Password:" default answer "" with hidden answer' -e 'text returned of result' 2>/dev/null)" && echo "$pw"
Use minimum permissions / IAM for https://iosexample.com/a-command-line-tool-to-download-and-install-apples-xcode/ Use minimum permissions / IAM for https://iosexample.com/a-command-line-tool-to-download-and-install-apples-xcode/
https://github.com/tiiiecherle/osx_install_config/blob/master/03_homebrew_casks_and_mas/3b_homebrew_casks_and_mas_install/6_mas_appstore.sh https://github.com/tiiiecherle/osx_install_config/blob/master/03_homebrew_casks_and_mas/3b_homebrew_casks_and_mas_install/6_mas_appstore.sh

View file

@ -332,6 +332,7 @@ setDefaultBrowser() {
osascript "$HOME/Library/Scripts/default-browser.scpt" "{{ .user.defaultBrowserDarwin }}" || EXIT_CODE=$? osascript "$HOME/Library/Scripts/default-browser.scpt" "{{ .user.defaultBrowserDarwin }}" || EXIT_CODE=$?
if [ -n "$EXIT_CODE" ]; then if [ -n "$EXIT_CODE" ]; then
logg error 'Failed to change default browser' logg error 'Failed to change default browser'
unset EXIT_CODE
fi fi
else else
logg info 'Setting default browser for text/html to {{ .user.defaultBrowser }}' logg info 'Setting default browser for text/html to {{ .user.defaultBrowser }}'

View file

@ -55,49 +55,49 @@ extras:
locations: locations:
altair: altair:
from: "$ALTAIR_APPDATA" from: "{{ env "ALTAIR_APPDATA" }}"
<<: *app <<: *app
android-studio: android-studio:
from: "$ANDROID_STUDIO_APPDATA" from: "{{ env "ANDROID_STUDIO_APPDATA" }}"
<<: *app <<: *app
brave-browser: brave-browser:
from: "$BRAVE_BROWSER_APPDATA" from: "{{ env "BRAVE_BROWSER_APPDATA" }}"
<<: *app <<: *app
ferdium: ferdium:
from: "$FERDIUM_APPDATA" from: "{{ env "FERDIUM_APPDATA" }}"
<<: *app <<: *app
firefox: firefox:
from: "$FIREFOX_APPDATA" from: "{{ env "FIREFOX_APPDATA" }}"
<<: *app <<: *app
google-chrome: google-chrome:
from: "$GOOGLE_CHROME_APPDATA" from: "{{ env "GOOGLE_CHROME_APPDATA" }}"
<<: *app <<: *app
logi-options-plus: logi-options-plus:
from: "$LOGI_OPTIONS_PLUS_APPDATA" from: "{{ env "LOGI_OPTIONS_PLUS_APPDATA" }}"
<<: *app <<: *app
mailspring: mailspring:
from: "$MAILSPRING_APPDATA" from: "{{ env "MAILSPRING_APPDATA" }}"
<<: *app <<: *app
mark-text: mark-text:
from: "$MARK_TEXT_APPDATA" from: "{{ env "MARK_TEXT_APPDATA" }}"
<<: *app <<: *app
microsoft-edge: microsoft-edge:
from: "$MICROSOFT_EDGE_APPDATA" from: "{{ env "MICROSOFT_EDGE_APPDATA" }}"
<<: *app <<: *app
notion: notion:
from: "$NOTION_APPDATA" from: "{{ env "NOTION_APPDATA" }}"
<<: *app <<: *app
pieces-os: pieces-os:
from: "$PIECES_OS_APPDATA" from: "{{ env "PIECES_OS_APPDATA" }}"
<<: *app <<: *app
remmina: remmina:
from: "$REMMINA_APPDATA" from: "{{ env "REMMINA_APPDATA" }}"
<<: *app <<: *app
tor-browser: tor-browser:
from: "$TOR_BROWSER_APPDATA" from: "{{ env "TOR_BROWSER_APPDATA" }}"
<<: *app <<: *app
warp-terminal: warp-terminal:
from: "$WARP_TERMINAL_APPDATA" from: "{{ env "WARP_TERMINAL_APPDATA" }}"
<<: *app <<: *app
home-local: home-local:
from: ~/ from: ~/

View file

@ -222,14 +222,6 @@ sudo systemsetup -setdisplaysleep 30 2>/dev/null 1>&2
# power failure. # power failure.
sudo pmset -a hibernatemode 0 sudo pmset -a hibernatemode 0
# Remove the sleep image file to save disk space
if sudo rm -f /private/var/vm/sleepimage > /dev/null; then
# Create a zero-byte file instead…
sudo touch /private/var/vm/sleepimage
# …and make sure it cant be rewritten
sudo chflags uchg /private/var/vm/sleepimage
fi
############################################################################### ###############################################################################
# Screen # # Screen #
############################################################################### ###############################################################################
@ -589,28 +581,7 @@ defaults write com.apple.mail SpellCheckingBehavior -string "NoSpellCheckingEnab
# Spotlight # # Spotlight #
############################################################################### ###############################################################################
# Hide Spotlight tray-icon (and subsequent helper)
#sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search
# Disable Spotlight indexing for any volume that gets mounted and has not yet
# been indexed before.
# Use `sudo mdutil -i off "/Volumes/foo"` to stop indexing any volume.
if [ -d /Volumes/Private ]; then
sudo mdutil -i off "/Volumes/Private"
fi
if [ -d /Volumes/Public ]; then
sudo mdutil -i off "/Volumes/Public"
fi
# ERROR: Could not write domain /.Spotlight-V100/VolumeConfiguration; exiting
# sudo defaults write /.Spotlight-V100/VolumeConfiguration Exclusions -array "/Volumes"
# Change indexing order and disable some search results # Change indexing order and disable some search results
# Yosemite-specific search results (remove them if you are using macOS 10.9 or older):
# MENU_DEFINITION
# MENU_CONVERSION
# MENU_EXPRESSION
# MENU_SPOTLIGHT_SUGGESTIONS (send search queries to Apple)
# MENU_WEBSEARCH (send search queries to Apple)
# MENU_OTHER
defaults write com.apple.spotlight orderedItems -array \ defaults write com.apple.spotlight orderedItems -array \
'{"enabled" = 1;"name" = "APPLICATIONS";}' \ '{"enabled" = 1;"name" = "APPLICATIONS";}' \
'{"enabled" = 1;"name" = "SYSTEM_PREFS";}' \ '{"enabled" = 1;"name" = "SYSTEM_PREFS";}' \