From 20f5699248aa85968d2d83858fbc34674c143366 Mon Sep 17 00:00:00 2001 From: Yasmin Teles Date: Mon, 29 Jul 2024 09:36:57 -0300 Subject: [PATCH] feat: add finder configs in macos --- macos/defaults.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/macos/defaults.sh b/macos/defaults.sh index 8d197aa..f2cac79 100644 --- a/macos/defaults.sh +++ b/macos/defaults.sh @@ -1,5 +1,9 @@ #!/bin/bash +### References: +# https://github.com/frankroeder/dotfiles/blob/master/macos/finder.bash +# https://github.com/mathiasbynens/dotfiles/blob/main/.macos + echo "Setting up macos..." ############################################################################### @@ -14,3 +18,34 @@ defaults write com.apple.screencapture "disable-shadow" -bool "true" # Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF) defaults write com.apple.screencapture type -string "png" + +################################################################################ +# Finder # +################################################################################ + +# loggedInUser=`/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'` + +# # sfltool nao funciona mais... +# if [ -e /usr/bin/sfltool ] ;then +# echo "$loggedInUser" +# # Add Projects to Finder Favorites sidebar. +# sfltool add-item com.apple.LSSharedFileList.FavoriteItems file:///Users/$loggedInUser/Projects && sleep 2 + +# # Add User folder to Finder Favorites sidebar. +# sfltool add-item com.apple.LSSharedFileList.FavoriteItems file:///Users/$loggedInUser && sleep 2 + +# touch /Users/$loggedInUser/.sidebarshortcuts +# fi + +# Show hidden files by default. +defaults write com.apple.finder AppleShowAllFiles -bool true + +# Show all filename extensions. +defaults write NSGlobalDomain AppleShowAllExtensions -bool true + +# Disable recent tags section in Finder. +defaults write com.apple.Finder ShowRecentTags -bool false + +# Restarts cfprefsd and Finder +killAll cfprefsd +killAll Finder