2023-11-25 11:31:26 +00:00
|
|
|
local git = require "lib.git"
|
|
|
|
|
|
|
|
|
|
local zsh_dir = os.getenv "HOME" .. "/.oh-my-zsh"
|
|
|
|
|
|
|
|
|
|
git.repo { src = "https://github.com/ohmyzsh/ohmyzsh.git", target = zsh_dir, version = "master" }
|
|
|
|
|
|
|
|
|
|
local zshrc = os.getenv "HOME" .. "/.zshrc"
|
|
|
|
|
if not configz.is_file(zshrc) then
|
|
|
|
|
configz.link(zshrc, {
|
|
|
|
|
source = os.getenv "PWD" .. "/site-modules/core/files/zshrc",
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
configz.directory(zsh_dir .. "/custom/plugins")
|
|
|
|
|
|
|
|
|
|
if not configz.is_directory(zsh_dir .. "/custom/custom") then
|
|
|
|
|
configz.link(zsh_dir .. "/custom/custom", {
|
2024-03-10 09:10:46 +00:00
|
|
|
source = os.getenv "PWD" .. "/site-modules/core/files/oh-my-zsh/custom",
|
2023-11-25 11:31:26 +00:00
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if not configz.is_directory(zsh_dir .. "/custom/lib") then
|
|
|
|
|
configz.link(zsh_dir .. "/custom/lib", {
|
2024-03-10 09:10:46 +00:00
|
|
|
source = os.getenv "PWD" .. "/site-modules/core/files/oh-my-zsh/lib",
|
2023-11-25 11:31:26 +00:00
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if not configz.is_file(zsh_dir .. "/custom/custom.zsh") then
|
|
|
|
|
configz.link(zsh_dir .. "/custom/custom.zsh", {
|
2024-03-10 09:10:46 +00:00
|
|
|
source = os.getenv "PWD" .. "/site-modules/core/files/oh-my-zsh/custom.zsh",
|
2023-11-25 11:31:26 +00:00
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if not configz.is_directory(zsh_dir .. "/custom/plugins/notmuch") then
|
|
|
|
|
configz.link(zsh_dir .. "/custom/plugins/notmuch", {
|
2024-03-10 09:10:46 +00:00
|
|
|
source = os.getenv "PWD" .. "/site-modules/core/files/oh-my-zsh/plugins/notmuch",
|
2023-11-25 11:31:26 +00:00
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
git.repo {
|
|
|
|
|
src = "https://github.com/zsh-users/zsh-autosuggestions",
|
|
|
|
|
target = zsh_dir .. "/custom/plugins/zsh-autosuggestions",
|
|
|
|
|
version = "master",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
git.repo {
|
|
|
|
|
src = "https://github.com/zsh-users/zsh-syntax-highlighting.git",
|
|
|
|
|
target = zsh_dir .. "/custom/plugins/zsh-syntax-highlighting",
|
|
|
|
|
version = "master",
|
|
|
|
|
}
|