-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (35 loc) · 1.36 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
SHELL = /bin/zsh
HOSTNAME := $(shell hostname -s)
npm-inventory:
bash languages/nodejs/inventory.sh | tee languages/nodejs/install-npm-globals.sh
pip-inventory:
bash languages/python/inventory.sh | tee languages/python/install-pip-globals.sh
gem-inventory:
bash languages/ruby/inventory.sh | tee languages/ruby/install-gem-globals.sh
.ONESHELL:
brewfile:
@bash -c 'mkdir homebrew/"$(HOSTNAME)"; cd homebrew/"$(HOSTNAME)"; rm Brewfile; brew bundle dump'
terminfo:
# See https://gpanders.com/blog/the-definitive-guide-to-using-tmux-256color-on-macos/
# This script automates the whole process:
brew install ncurses
$$(brew --prefix ncurses)/bin/infocmp -x tmux-256color | \
sed -E 's/pairs#(0x10000|65536)/pairs#32767/' | \
tic -x -o terminfo -
.PHONY: ssh_fallback
ssh_fallback: ~/.ssh/id_rsa_fallback
# Reads fallback SSH key from 1Password vault and drop it in ~/.ssh/id_rsa_fallback
~/.ssh/id_rsa_fallback:
op item get lgukbustpzevs7g5osdyqeyqf4 \
--format json \
--fields 'label=private key' \
--reveal \
| jq -r '.ssh_formats.openssh.value' \
| sed 's#\r##' > ~/.ssh/id_rsa_fallback
chmod 0700 ~/.ssh/id_rsa_fallback
image-2-ascii-converter:
go install github.com/TheZoraiz/ascii-image-converter@latest
gh-extensions:
gh extension install dlvhdr/gh-dash
gh extension install yusukebe/gh-markdown-preview
gh extension install gennaro-tedesco/gh-f