blob: 976095cfff0e269eecbba8f5bee61181043934ba (
plain)
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
|
- defaults:
link:
create: true
relink: true
force: true
shell:
quiet: true
stdin: true
- clean: ["~"]
- create:
- ~/.local/share/bash-completion/completions
- ~/.local/share/zsh/site-functions
- shell:
- description: Installing submodules
command: git submodule update --init --recursive
- description: Installing rust
command:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path && (
rustup completions bash >~/.local/share/bash-completion/completions/rustup;
rustup completions zsh >~/.local/share/zsh/site-functions/_rustup;
rustup completions bash cargo >~/.local/share/bash-completion/completions/cargo;
rustup completions zsh cargo >~/.local/share/zsh/site-functions/_cargo)
- description: Installing Starship
command: scripts/install-crate.sh --git starship/starship --no-tag && (
starship completions bash >~/.local/share/bash-completion/completions/starship;
starship completions zsh >~/.local/share/zsh/site-functions/_starship)
- description: Installing antibody
command: curl -sfL git.io/antibody | sh -s - -b ~/.local/bin &&
(cd zsh; antibody bundle <plugins.txt >plugins.zsh);
- description: Installing fzf
command:
\[ -f ~/.fzf/install \] || git clone -q --depth 1 https://github.com/junegunn/fzf.git ~/.fzf &&
yes | ~/.fzf/install --bin && (
curl -sL https://raw.githubusercontent.com/junegunn/fzf/master/shell/completion.bash >~/.local/share/bash-completion/completions/fzf;
curl -sL https://raw.githubusercontent.com/junegunn/fzf/master/shell/completion.zsh >~/.local/share/zsh/site-functions/_fzf)
- description: Installing bat
command: scripts/install-crate.sh --git sharkdp/bat --completion-bash --completion-zsh ~/.local/share/zsh/site-functions
- description: Installing cheat.sh
command: curl https://cht.sh/:cht.sh >~/.local/bin/cht.sh &&
chmod +x ~/.local/bin/cht.sh && (
curl https://cht.sh/:bash_completion >~/.local/share/bash-completion/completions/cht;
curl https://cheat.sh/:zsh >~/.local/share/zsh/site-functions/_cht)
- description: Installing gh
command: td=$(mktemp -d) &&
arch="$(uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/ | sed s/armv7l/armv6/)" &&
tag="$(curl -sI https://github.com/cli/cli/releases/latest | grep -Po 'tag\/v?\K(\S+)')" &&
name="gh_${tag}_linux_${arch}" &&
url="https://github.com/cli/cli/releases/latest/download/${name}.tar.gz" &&
curl -sL $url | tar -C $td -xz &&
test -x $td/$name/bin/gh &&
install -Dm 755 $td/$name/bin/gh ~/.local/bin/gh && (
gh completion --shell bash >~/.local/share/bash-completion/completions/gh;
gh completion --shell zsh >~/.local/share/zsh/site-functions/_gh)
- description: Installing git-open
command:
curl -sL "https://raw.githubusercontent.com/paulirish/git-open/master/git-open" >~/.local/bin/git-open &&
chmod +x ~/.local/bin/git-open;
- link:
~/.bashrc:
~/.zshrc:
~/.config/starship.toml: starship.toml
~/.config/alacritty.yml: alacritty.yml
~/.gitconfig:
~/.ssh/config: ssh/config
~/.gnupg/:
glob: true
path: gnupg/*.conf
- shell:
# ISSUE #1 Fails to import key inside of WSL2
- description: Installing gpg key
command: gpg --recv-key 0xC8F6E06F5C8E2634
- description: Importing GPG trustfile
command: gpg --import-ownertrust gnupg/trustfile.txt
- shell:
- description: ""
command: if [ -n "${WSL_DISTRO_NAME+1}" ]; then ./wsl.install; fi
stdout: true
# stderr: true
|