fix zsh config paths

This commit is contained in:
2025-09-15 08:19:46 +03:00
parent d397192471
commit 652d71e50e
5 changed files with 162 additions and 111 deletions

View File

@@ -1,46 +1,85 @@
{ {
"template": { "template": {
"htop": { "htop": {
"link": { "from": "shared/htop", "to": "~/.config/htop" } "link": {
"from": "shared/htop",
"to": "~/.config/htop"
}
}, },
"bin": { "bin": {
"link": { "from": "shared/bin", "to": "~/bin" } "link": {
"from": "shared/bin",
"to": "~/bin"
}
}, },
"vim": { "vim": {
"link": { "from": "shared/vim", "to": "~/.vimrc" }, "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'" "-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": { "nvim": {
"link": { "from": "shared/nvim", "to": "~/.config/nvim/init.lua" }, "link": {
"from": "shared/nvim",
"to": "~/.config/nvim/init.lua"
},
"post-link": "(grep -q 'alias vim=nvim' ~/.zshrc || echo 'alias vim=nvim' >> ~/.zshrc) || true" "post-link": "(grep -q 'alias vim=nvim' ~/.zshrc || echo 'alias vim=nvim' >> ~/.zshrc) || true"
}, },
"zsh": { "zsh": {
"link": { "from": "shared/zsh/zshrc_root", "to": "~/.zshrc" }, "link": {
"from": "shared/zsh_root",
"to": "~/.zshrc"
}
}, },
"zsh_config": { "zsh_config": {
"link": { "from": "shared/zsh/zsh", "to": "~/.config/zsh" }, "link": {
"from": "shared/zsh_config",
"to": "~/.config/zsh"
}
}, },
"tmux": { "tmux": {
"link": { "from": "shared/tmux", "to": "~/.tmux.conf" } "link": {
"from": "shared/tmux",
"to": "~/.tmux.conf"
}
}, },
"git": { "git": {
"link": { "from": "shared/git", "to": "~/.gitconfig" } "link": {
"from": "shared/git",
"to": "~/.gitconfig"
}
}, },
"wezterm": { "wezterm": {
"link": { "from": "shared/wezterm", "to": "~/.wezterm.lua" } "link": {
"from": "shared/wezterm",
"to": "~/.wezterm.lua"
}
}, },
"alacritty": { "alacritty": {
"link": { "from": "shared/alacritty", "to": "~/.alacritty.toml" } "link": {
"from": "shared/alacritty",
"to": "~/.alacritty.toml"
}
}, },
"ghostty": { "ghostty": {
"link": { "from": "shared/ghostty", "to": "~/.config/ghostty" } "link": {
"from": "shared/ghostty",
"to": "~/.config/ghostty"
}
} }
}, },
"environments": { "environments": {
"macos": [ "macos": [
"zsh", "zsh",
"zsh_config", "zsh_config",
"bin", {
"package": "bin",
"link": {
"from": "macos/bin",
"to": "~/bin"
}
},
"tmux", "tmux",
"nvim", "nvim",
"git", "git",
@@ -48,11 +87,17 @@
"alacritty", "alacritty",
{ {
"package": "karabiner", "package": "karabiner",
"link": { "from": "macos/karabiner", "to": "~/.config/karabiner" } "link": {
"from": "macos/karabiner",
"to": "~/.config/karabiner"
}
}, },
{ {
"package": "linearmouse", "package": "linearmouse",
"link": { "from": "macos/linearmouse", "to": "~/.config/linearmouse" } "link": {
"from": "macos/linearmouse",
"to": "~/.config/linearmouse"
}
}, },
{ {
"package": "rectangle", "package": "rectangle",
@@ -68,7 +113,10 @@
}, },
{ {
"package": "tmux", "package": "tmux",
"link": { "from": "linux-vm/tmux", "to": "~/.tmux.conf" }, "link": {
"from": "linux-vm/tmux",
"to": "~/.tmux.conf"
},
"install": "sudo apt install -y tmux" "install": "sudo apt install -y tmux"
}, },
{ {
@@ -99,7 +147,10 @@
{ {
"package": "nvim", "package": "nvim",
"ignore-template": true, "ignore-template": true,
"link": { "from": "linux-dev/nvim", "to": "~/.config/nvim" }, "link": {
"from": "linux-dev/nvim",
"to": "~/.config/nvim"
},
"post-link": "nvim --headless '+Lazy! restore' '+MasonUpdate' '+TSUpdate' +qa && (grep -q 'alias vim=nvim' ~/.zshrc || echo 'alias vim=nvim' >> ~/.zshrc) || true" "post-link": "nvim --headless '+Lazy! restore' '+MasonUpdate' '+TSUpdate' +qa && (grep -q 'alias vim=nvim' ~/.zshrc || echo 'alias vim=nvim' >> ~/.zshrc) || true"
}, },
{ {