From e52cfca21bc5a085518c3ca9b2cfddcc0eddfee1 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 20 Nov 2016 09:44:38 -0800 Subject: [PATCH] [zsh] Add screenshots detault setup --- rc.darwin | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rc.darwin b/rc.darwin index 987c26e..2dba3e8 100644 --- a/rc.darwin +++ b/rc.darwin @@ -23,9 +23,15 @@ alias glass="afplay $SOUNDSDIR/Glass.aiff" alias funk="afplay $SOUNDSDIR/Funk.aiff" unset SOUNDSDIR -function write-defaults +function init-macos { # Dim dock icons of apps that have been hidden. defaults write com.apple.Dock showhidden -boolean yes killall Dock + + # Put screenshots in Google Drive, in a directory according to hostname + name=`hostname -s | tr A-Z a-z` + loc="$HOME/Google Drive/Screenshots/$name" + mkdir -p "$loc" + defaults write com.apple.screencapture location "$loc" }