From 2311bceffc75a093bfb13ee292c40d2c2232b057 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 8 Apr 2019 08:42:23 -0700 Subject: [scripts] Add a directory for scripts. First thing first: where to store screenshots. --- Makefile | 9 ++++++++- scripts/osx.sh | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 scripts/osx.sh diff --git a/Makefile b/Makefile index e71e986..7e44a5e 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,13 @@ $(HOME)/.ssh/authorized_keys: $(HOME)/workspace: @mkdir -p $(HOME)/workspace/ +$(HOME)/GDrive/screenshots: + @mkdir -p $(HOME)/GDrive/screenshots + +.PHONE: osx +osx: + @./scripts/osx.sh + .PHONY: git git: @git config --local user.email "franck.cuny@gmail.com" @@ -38,4 +45,4 @@ clean-dead: @find ~ -maxdepth 1 -name '.*' -type l -exec test ! -e {} \; -delete .PHONY: install -install: $(INSTALLED) $(HOME)/workspace $(HOME)/.ssh/authorized_keys +install: $(INSTALLED) $(HOME)/workspace $(HOME)/.ssh/authorized_keys $(HOME)/Documents/screenshots osx diff --git a/scripts/osx.sh b/scripts/osx.sh new file mode 100755 index 0000000..6c92b2c --- /dev/null +++ b/scripts/osx.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +defaults write com.apple.screencapture location ~/Gdrive/screenshots -- cgit 1.4.1