From cec88d75a9d7bf89961745ec8271099ef4544288 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Tue, 2 Mar 2021 08:37:09 -0800 Subject: [PATCH] [zsh] Fix up iCloud docs function and darwin-init --- rc.darwin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc.darwin b/rc.darwin index 38a2f22..7a82919 100644 --- a/rc.darwin +++ b/rc.darwin @@ -24,7 +24,7 @@ unset SOUNDSDIR function darwin-icloud-drive-path { - echo "$HOME/Library/Mobile\ Documents/com\~apple\~CloudDocs" + echo "$HOME/Library/Mobile Documents/com~apple~CloudDocs" } function darwin-init @@ -38,7 +38,7 @@ function darwin-init icloud=`darwin-icloud-drive-path` if [[ -d "$icloud" ]]; then local name=`hostname -s | tr A-Z a-z` - local loc="`darwin-icloud-drive-path`/Screenshots/$name" + local loc="$(darwin-icloud-drive-path)/Screenshots/$name" print_info "Setting screenshot directory: $loc" mkdir -p "$loc" defaults write com.apple.screencapture location "$loc"