summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <fcuny@twitter.com>2019-04-08 08:42:23 -0700
committerFranck Cuny <fcuny@twitter.com>2019-04-08 08:42:23 -0700
commit2311bceffc75a093bfb13ee292c40d2c2232b057 (patch)
tree4fa31281e5e41dc8b7614808d598e3ca8942d3f4
parent[tmux] A few more changes. (diff)
downloademacs.d-2311bceffc75a093bfb13ee292c40d2c2232b057.tar.gz
[scripts] Add a directory for scripts.
First thing first: where to store screenshots.
-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