-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.conf.yaml
More file actions
112 lines (93 loc) · 2.88 KB
/
install.conf.yaml
File metadata and controls
112 lines (93 loc) · 2.88 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
- defaults:
link:
create: true
relink: true
- clean: ["~"]
- link:
# shell
~/.bashrc:
path: home/.bashrc
force: true
~/.zsh:
force: true
path: home/.zsh
~/.zshrc:
force: true
path: home/.zsh/.zshrc
~/.zshenv: home/.zsh/.zshenv
~/.p10k.zsh: home/.p10k.zsh
# terminal emulators
~/.config/alacritty:
create: true
path: home/.config/alacritty
~/.config/wezterm:
create: true
path: home/.config/wezterm
# vim
~/.vimrc: home/.vimrc
~/.ideavimrc: home/.ideavimrc
~/.config/nvim:
create: true
path: home/.config/nvim
# scripts
~/.local/bin/yt-wpp: home/.local/bin/yt-wpp.sh
# in case of deleting ~/.config/nvim, use this to relink:
# mv ~/.config/nvim .config/
# ln -s ~/Workbench/dotfiles/.config/nvim ~/.config/nvim
# ls -l ~/.config | grep nvim # check if it was succesfully linked
~/.config/mise:
create: true
path: home/.config/mise
~/.gitconfig: home/.gitconfig
~/.git/hooks/prevent-force-push: home/.config/git/hooks/prevent-force-push
~/.inputrc:
path: .inputrc
force: true
~/.tmux.conf: home/.tmux.conf
~/.Brewfile: home/Brewfile
~/.finicky.ts: home/finicky.ts
- create:
- ~/Workbench
- ~/.vim/undodir
- shell:
- [git submodule update --init --recursive, Installing submodules]
- description: "Install mise"
command: |
if ! command -v mise >/dev/null 2>&1; then
echo "Installing mise..."
curl https://mise.run | sh
# Add mise to PATH for current session
export PATH="$HOME/.local/bin:$PATH"
# Verify installation
if command -v mise >/dev/null 2>&1; then
echo "mise installed successfully"
echo "Installing mise tools..."
mise install
else
echo "mise installation may have failed, but anyways..."
fi
else
echo "mise is already installed, skipping..."
fi
- description: "Compile copyfile.swift"
command: |
if [ "$(uname)" = "Darwin" ]; then
swiftc ./bin/copyfile.swift -o ~/.local/bin/copyfile
fi
- description: install vim plug
command: |
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- description: "Install fonts"
command: "sh ./scripts/install-fonts.sh"
- description: "Install alacritty themes"
command: |
THEMES_DIR=$HOME/.config/alacritty/themes
REPO_URL=https://github.com/alacritty/alacritty-theme
if [ ! -d "$THEMES_DIR" ] ; then
git clone "$REPO_URL" "$THEMES_DIR"
else
cd "$THEMES_DIR"
git pull "$REPO_URL"
fi
- description: "Configure PM2 logrotate"
command: "sh ./scripts/pm2-logrotate.sh"