Skip to content

Commit

Permalink
feat: add finder configs in macos
Browse files Browse the repository at this point in the history
  • Loading branch information
YasminTeles committed Jul 29, 2024
1 parent 0eefb69 commit 4bba62a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions macos/defaults.sh
Original file line number Diff line number Diff line change
@@ -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..."

###############################################################################
Expand All @@ -14,3 +18,31 @@ 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

# Restarts cfprefsd and Finder
killAll cfprefsd
killAll Finder

0 comments on commit 4bba62a

Please sign in to comment.