-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yaml
80 lines (77 loc) · 2.83 KB
/
config.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
# Installation section
# Fields:
# - name: Name of the tool (required)
# - method: Installation method, e.g., 'cask' for Homebrew Cask (optional)
# - install_command: Custom command to install the tool (optional)
tools:
- name: "zsh"
- name: "git"
- name: "tmux"
- name: "fzf"
- name: "bat"
- name: "ripgrep"
- name: "neovim"
- name: "pyenv"
- name: "gh"
post_install:
- gh auth login
- name: "ghq"
- name: "luajit"
- name: "go"
- name: "alacritty" # Replace 'example_tool_name' with the actual tool name.
method: "cask"
- name: "arc"
method: "cask"
- name: "zed"
method: "cask"
- name: "docker"
method: "cask"
- name: "zimfw"
install_command: "curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh"
- name: "uv"
install_command: "curl -LsSf https://astral.sh/uv/install.sh | sh"
- name: "rust"
install_command: "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh"
# - name: "zshz"
# install_command: "echo 'zmodule https://github.com/agkozak/zsh-z' >> ~/.zimrc && zimfw install"
# - name: "forgit"
# install_command: "echo 'zmodule https://github.com/wfxr/forgit' >> ~/.zimrc && zimfw install"
# Configuration section
# Fields:
# - name: Name of the tool to configure (required)
# - config_url: URL to the configuration file (optional)
# - install_path: Path where the configuration should be installed (required)
# - configure_command: Command for configuring tools (optional)
configure:
- name: "neovim"
config_url: "https://github.com/XiaoConstantine/nvim_lua_config/blob/master/init.lua"
install_path: "~/.config/nvim/init.lua"
- name: "alacritty"
config_url: "https://github.com/XiaoConstantine/nvim_lua_config/blob/master/alacritty.toml"
install_path: "~/.config/alacritty.toml"
- name: "tmux"
config_url: "https://github.com/XiaoConstantine/nvim_lua_config/blob/master/.tmux.conf"
install_path: "~/.tmux.conf"
- name: "git"
config_url: "https://github.com/XiaoConstantine/nvim_lua_config/blob/master/.gitconfig"
install_path: "~/.gitconfig"
- name: "alias"
config_url: "https://github.com/XiaoConstantine/nvim_lua_config/blob/master/.alias.zsh"
install_path: "~/.alias.zsh"
- name: "zmodule"
config_url: "https://github.com/XiaoConstantine/nvim_lua_config/blob/master/.zsh_custom"
install_path: "~/.zsh_custom"
- name: "zsh"
configure_command: echo 'source $HOME/.alias.zsh' >> $HOME/.zshrc
- name: "zimfw"
configure_command:
- |
if [ -f ~/.zsh_custom ]; then
while IFS= read -r line; do
if [[ $line == zmodule* ]] && ! grep -qF "$line" ~/.zimrc; then
echo "$line" >> ~/.zimrc
fi
done < ~/.zsh_custom
else
echo "~/.zsh_custom file not found. Skipping module addition."
fi