-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdotfiles.toml
More file actions
92 lines (85 loc) · 2.99 KB
/
dotfiles.toml
File metadata and controls
92 lines (85 loc) · 2.99 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
[config]
backup_dir = "~/.dotfiles_backup"
enabled = [
"git",
"fish",
"fish_extras",
"zellij",
]
[packages.homebrew]
install.darwin = '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"'
[packages.lazyvim]
depends_on = ["nvim"]
install.all = """
mv ~/.config/nvim ~/.config/nvim.bak || true
git clone https://github.com/LazyVim/starter ~/.config/nvim
rm -rf ~/.config/nvim/.git
"""
links."lazyvim/colorscheme.lua" = "~/.config/nvim/lua/plugins/colorscheme.lua"
[packages.nvim]
depends_on = ["homebrew"]
install.linux = """
sudo apt install -y git
wget https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.tar.gz -O /tmp/nvim.tgz
tar xzf /tmp/nvim.tgz -C /tmp
cp /tmp/nvim-linux-x86_64/* ~/.local/ -r
"""
install.darwin = "brew install neovim"
links."nvim/init.lua" = "~/.config/nvim/init.lua"
links."nvim/lua" = "~/.config/nvim/lua"
[packages.git]
depends_on = ["homebrew"]
install.linux = "sudo apt install git"
install.darwin = "brew install git"
links."git/.gitconfig" = "~/.gitconfig"
[packages.fish]
depends_on = ["nvim"]
install.linux = """
sudo apt-add-repository -y ppa:fish-shell/release-4
sudo apt update
sudo apt install -y fish
sudo chsh -s $(which fish) $(whoami)
fish -c 'fish_add_path -U ~/.local/bin'
fish -c 'set -Ux EDITOR (which nvim)'
"""
install.darwin = """
brew install fish
if ! grep -q "$(which fish)" /etc/shells; then
echo "$(which fish)" | sudo tee -a /etc/shells
fi
chsh -s "$(which fish)"
fish -c 'set -Ux EDITOR (which nvim)'
"""
links."fish/config.fish" = "~/.config/fish/config.fish"
links."fish/functions" = "~/.config/fish/functions"
[packages.fish_extras]
depends_on = ["fish"]
install.linux = """
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf || true
~/.fzf/install --all
fish -c 'curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher'
fish -c 'fisher install PatrickF1/fzf.fish'
fish -c 'fisher install dracula/fish'
fish -c 'fish_config theme choose "Dracula Official"'
wget 'https://github.com/sharkdp/bat/releases/download/v0.22.1/bat-musl_0.22.1_amd64.deb' -O /tmp/bat.deb
sudo dpkg -i /tmp/bat.deb
sudo apt install -y fd-find
"""
install.darwin = """
brew install fzf bat fd
$(brew --prefix)/opt/fzf/install --all
fish -c 'curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher'
fish -c 'fisher install PatrickF1/fzf.fish'
fish -c 'fisher install dracula/fish'
fish -c 'fish_config theme choose "Dracula Official"'
"""
[packages.zellij]
depends_on = ["homebrew"]
install.linux = """
wget 'https://github.com/zellij-org/zellij/releases/download/v0.43.1/zellij-no-web-x86_64-unknown-linux-musl.tar.gz' -O /tmp/zellij.tar.gz
tar xzf /tmp/zellij.tar.gz -C /tmp
cp /tmp/zellij ~/.local/bin/zellij
"""
install.darwin = "brew install zellij"
links."zellij/config.kdl" = "~/.config/zellij/config.kdl"
links."zellij/layouts" = "~/.config/zellij/layouts"