dotfiles/config.json

82 lines
2.2 KiB
JSON

{
"template": {
"htop": {
"link": { "from": "shared/htop", "to": "~/.config/htop" }
},
"bin": {
"link": { "from": "shared/bin", "to": "~/bin" }
},
"vim": {
"link": { "from": "shared/vim", "to": "~/.vimrc" },
"post-link": "curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim && vim -es -u ~/.vimrc -i NONE -c 'PlugInstall' -c 'qa'"
},
"nvim": {
"link": { "from": "shared/nvim", "to": "~/.config/nvim" },
"post-link": "nvim --headless '+Lazy! restore' +qa && echo 'alias vim=nvim' >> ~/.zshrc"
},
"zsh": {
"link": { "from": "shared/zsh", "to": "~/.zshrc" }
},
"tmux": {
"link": { "from": "shared/tmux", "to": "~/.tmux.conf" }
},
"git": {
"link": { "from": "shared/git", "to": "~/.gitconfig" }
},
"wezterm": {
"link": { "from": "shared/wezterm", "to": "~/.wezterm.lua" }
},
"alacritty": {
"link": { "from": "shared/alacritty", "to": "~/.alacritty.toml" }
},
"ghostty": {
"link": { "from": "shared/ghostty", "to": "~/.config/ghostty" }
}
},
"environments": {
"macos": [
"zsh",
"tmux",
"nvim",
"git",
"ghostty",
{
"package": "karabiner",
"link": { "from": "macos/karabiner", "to": "~/.config/karabiner" }
},
{
"package": "linearmouse",
"link": { "from": "macos/linearmouse", "to": "~/.config/linearmouse" }
}
],
"linux-vm": [
"git",
{
"package": "zsh",
"install": "sudo apt install -y zsh",
"post-link": "./scripts/linux-setup_zsh.sh"
},
{
"package": "tmux",
"install": "sudo apt install -y tmux"
},
{
"package": "htop",
"install": "sudo apt install -y htop"
}
],
"linux-dev": [
"git",
"htop",
"zsh",
"tmux",
{
"package": "nvim",
"ignore-template": true,
"link": { "from": "linux-dev/nvim", "to": "~/.config/nvim" },
"post-link": "nvim --headless '+Lazy! restore' '+MasonUpdate' +qa && echo 'alias vim=nvim' >> ~/.zshrc"
}
]
}
}