mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-10 06:03:47 -05:00
now set home as dir for new finder windows
This commit is contained in:
@@ -97,8 +97,6 @@ function mainScript() {
|
||||
#
|
||||
# Credit: https://github.com/cowboy/dotfiles
|
||||
|
||||
|
||||
|
||||
function to_install() {
|
||||
local desired installed i desired_s installed_s remain
|
||||
# Convert args to arrays, handling both space- and newline-separated lists.
|
||||
@@ -257,7 +255,7 @@ function mainScript() {
|
||||
brew install argon/mas/mas
|
||||
brew tap argon/mas
|
||||
brew tap caskroom/cask
|
||||
brew tap caskroom/fonts
|
||||
# brew tap caskroom/fonts
|
||||
brew tap caskroom/versions
|
||||
}
|
||||
|
||||
@@ -489,7 +487,6 @@ function mainScript() {
|
||||
tree
|
||||
unison # Rsynch like tool
|
||||
)
|
||||
|
||||
doInstall
|
||||
|
||||
success "Done installing Homebrew packages"
|
||||
@@ -586,13 +583,11 @@ function mainScript() {
|
||||
"Dropbox/sharedConfiguration/Mackup/Library/Application Support/PaxGalaxia/net.txt"
|
||||
"Dropbox/sharedConfiguration/Mackup/Pictures/DeviantartBackup/clouds2.jpg"
|
||||
"Dropbox/sharedConfiguration/Mackup/Library/init/bash/aliases.bash"
|
||||
"Dropbox/sharedConfiguration/Mackup/Downloads"
|
||||
"Dropbox/sharedConfiguration/Mackup/.mackup/my-files.cfg"
|
||||
"Dropbox/sharedConfiguration/App Configuration Files/Alfred2/Alfred.alfredpreferences"
|
||||
"Dropbox/sharedConfiguration/Mackup/Library/Preferences/com.dustinrue.ControlPlane.plist"
|
||||
)
|
||||
|
||||
|
||||
info "Confirming that Dropbox has synced by looking for files..."
|
||||
info "(This might fail if the list of files is out of date)"
|
||||
|
||||
|
||||
@@ -225,7 +225,7 @@ function mainScript() {
|
||||
|
||||
success "Set Home Folder as the default location for new Finder windows"
|
||||
# For other paths, use `PfLo` and `file:///full/path/here/`
|
||||
defaults write com.apple.finder NewWindowTarget -string "PfDe"
|
||||
defaults write com.apple.finder NewWindowTarget -string "PfHm"
|
||||
defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}/"
|
||||
|
||||
success "Show icons for hard drives, servers, and removable media on the desktop"
|
||||
@@ -306,6 +306,9 @@ function mainScript() {
|
||||
success "Show the ~/Library folder"
|
||||
chflags nohidden ${HOME}/Library
|
||||
|
||||
success "Show the /Volumes folder"
|
||||
sudo chflags nohidden /Volumes
|
||||
|
||||
#success "Remove Dropbox’s green checkmark icons in Finder"
|
||||
#file=/Applications/Dropbox.app/Contents/Resources/emblem-dropbox-uptodate.icns
|
||||
#[ -e "${file}" ] && mv -f "${file}" "${file}.bak"
|
||||
@@ -329,9 +332,15 @@ function mainScript() {
|
||||
success "Enable highlight hover effect for the grid view of a stack"
|
||||
defaults write com.apple.dock mouse-over-hilite-stack -bool true
|
||||
|
||||
success "Change minimize/maximize window effect"
|
||||
defaults write com.apple.dock mineffect -string "genie"
|
||||
|
||||
success "Set the icon size of Dock items to 36 pixels"
|
||||
defaults write com.apple.dock tilesize -int 36
|
||||
|
||||
success "Show only open applications in the Dock"
|
||||
defaults write com.apple.dock static-only -bool true
|
||||
|
||||
success "Minimize windows into their application’s icon"
|
||||
defaults write com.apple.dock minimize-to-application -bool true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user