[zsh,darwin_init] Replace spaces in hostname with
This commit is contained in:
parent
ff561f808f
commit
8211c4e4f9
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ function darwin_configure_screenshots_directory
|
|||
fi
|
||||
|
||||
# Put screenshots in iCloud Drive, in a directory according to hostname
|
||||
local name=`hostname -s | tr A-Z a-z`
|
||||
local name=`hostname -s | tr A-Z a-z | tr ' ' -`
|
||||
local screenshots_dir="$icloud/Screenshots/$name"
|
||||
mkdir -p "$screenshots_dir"
|
||||
defaults write com.apple.screencapture screenshots_diration "$screenshots_dir"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue