-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskfile.yml
More file actions
95 lines (92 loc) · 2.42 KB
/
taskfile.yml
File metadata and controls
95 lines (92 loc) · 2.42 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: 3
vars:
EMAIL: hi@teddy.codes
CASKS: |
visual-studio-code
slack
spotify
iterm2
docker
zoom
wireshark
notion
discord
font-jetbrains-mono
TOOLS: |
go
gh
golang-migrate
git
pulumi
zoxide
nvm
bottom
fzf
trash
tasks:
setup:
cmds:
- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- brew install go-task/tap/go-task
pack:
cmds:
- cp ~/.zshrc .zshrc
- cp ~/.ssh/config .ssh/config
unpack:
cmds:
- cp .zshrc ~/.zshrc
- cp .ssh/config ~/.ssh/config
install-casks:
cmds:
- brew install --cask {{ .CASKS | catLines }}
install-commands:
cmds:
- brew install {{ .TOOLS | catLines }}
- task: install-fzf
- task: alias-trash
install-tools:
preconditions:
- brew --version
- brew update && brew upgrade
- brew tap homebrew/cask-versions
cmds:
- task: install-casks
- task: install-commands
alias-trash:
status:
- cat ~/.zshrc | grep 'alias rm'
cmds:
install-fzf:
status:
- "[[ -f ~/.fzf.zsh ]]"
cmds:
- /opt/homebrew/opt/fzf/install --all
setup-ssh-keys:
status:
- "[[ -f ~/.ssh/id_ed25519 ]]"
cmds:
- ssh-keygen -t ed25519 -C "{{ .EMAIL }}"
- eval "$(ssh-agent -s)"
change-screenshot-location:
preconditions:
- [[ -f ]]
setup-git:
status:
- git config --global user.signingkey | grep 'ssh'
- git config --global user.name | grep 'Teddy'
- git config --global user.signingkey | grep 'ssh'
- git config --global init.defaultBranch | grep 'master'
- git config --global user.email | grep "{{ .EMAIL }}"
cmds:
- task: setup-ssh-keys
- git config --global user.name Teddy
- git config --global commit.gpgsign true
- git config --global tag.gpgsign true
- git config --global init.defaultBranch master
- git config --global user.email "{{ .EMAIL }}"
- git config --global gpg.format ssh
- echo "Please paste the following ssh key into your github account as both the signing and authentication keys"
- cat ~/.ssh/id_ed25519.pub
- git config --global user.signingkey "$(cat ~/.ssh/id_ed25519.pub)"
- ssh-add --apple-use-keychain ~/.ssh/id_ed25519