summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
-rwxr-xr-xscripts/osx.sh3
2 files changed, 11 insertions, 1 deletions
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