-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.yaml
91 lines (87 loc) · 2.85 KB
/
base.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
84
85
86
87
88
89
90
91
---
# https://github.com/anishathalye/dotbot/tree/master#directives
- defaults:
link:
create: true
relink: true
- clean:
- "~"
- "~/.config"
- "~/.functions"
- "~/.bin"
- link:
~/.bash_profile:
path: base/.bash_profile
force: true
~/.bashrc:
path: base/.bashrc
force: true
~/.dircolors:
path: base/.dircolors
if: "whence dircolors >/dev/null"
~/.zshrc:
path: base/.zshrc
if: '[ -x "$(command -v zsh)" ]'
force: true
~/.editorconfig:
path: base/.editorconfig
~/.profile:
path: base/.profile
~/.vimrc:
path: base/.vimrc
force: true
if: '[ -x "$(command -v vim)" ]'
~/.vimrc.bundles:
path: base/.vimrc.bundles
if: '[ -x "$(command -v vim)" ]'
~/.tmux.conf:
path: base/.tmux.conf
if: '[ -x "$(command -v tmux)" ]'
~/.config/k9s/config.yaml:
path: base/.config/k9s/config.yaml
if: '[ `uname` = Linux ] && [ -x "$(command -v kubectl)" ]'
~/.config/k9s/skins/skin.yaml:
path: base/.config/k9s/skin.yaml
if: '[ `uname` = Linux ] && [ -x "$(command -v kubectl)" ]'
~/Library/Application Support/k9s/config.yaml:
path: base/.config/k9s/config.yaml
if: '[ `uname` = Darwin ] && [ -x "$(command -v kubectl)" ]'
~/Library/Application Support/k9s/skins/skin.yaml:
path: base/.config/k9s/skin.yaml
if: '[ `uname` = Darwin ] && [ -x "$(command -v kubectl)" ]'
~/.config/nvim:
path: base/.config/nvim
if: '[ -x "$(command -v nvim)" ]'
~/.config/broot/conf.toml:
path: base/.config/broot/conf.toml
if: '[ -x "$(command -v broot)" ]'
~/.bin/:
glob: true
path: base/.bin/*
~/.functions/:
glob: true
path: base/.functions/*
~/.functions/pacman.sh:
path: base/platform/pacman.sh
if: '[ `uname` = Linux ] && [ -x "$(command -v pacman)" ]'
~/.zshrc.linux:
path: base/platform/.zshrc.linux
if: '[ `uname` = Linux ]'
- shell:
# Allow direnv access to ~/.envrc
- ['[ -f "$HOME/.zinit/plugins/direnv---direnv/direnv" ] && direnv allow $HOME || true']
- ['[ -f /bin/zsh ] && /bin/zsh -c "source ~/.zshrc; zinit self-update"']
# - ['[ -x "$(command -v vim)" ] && /usr/bin/vim +PlugInstall +qall > /dev/null || true']
- ['[ -x "$(command -v nvim)" ] && nvim --headless "+Lazy! sync" -c "quitall" || true']
- ['[ -x "$(command -v doom)" ] && doom upgrade || true']
-
# https://github.com/tmux-plugins/tpm/blob/master/docs/managing_plugins_via_cmd_line.md
- >-
if [ -x "$(command -v tmux)" ]; then
tmux start-server;
tmux new-session -d;
tmux source-file ~/.tmux.conf;
run "~/.tmux/plugins/tpm/bin/install_plugins";
run "~/.tmux/plugins/tpm/bin/update_plugins all";
tmux kill-session -t 0;
fi