mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-28 04:45:33 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
64f1d7354e | ||
|
|
0d93f2dbb2 | ||
|
|
9dc1ed8b38 | ||
|
|
75b99dd117 | ||
|
|
305355beaf |
6
.gitmodules
vendored
6
.gitmodules
vendored
@@ -2,7 +2,11 @@
|
||||
path = config/nvim
|
||||
url = git@github.com:AstroNvim/AstroNvim.git
|
||||
ignore = dirty
|
||||
branch = v3
|
||||
update = checkout
|
||||
[submodule "config/astronvim/lua/user"]
|
||||
path = config/astronvim/lua/user
|
||||
url = git@github.com:ivuorinen/astronvim_config.git
|
||||
ignore = dirty
|
||||
update = rebase
|
||||
branch = main
|
||||
|
||||
|
||||
Submodule config/astronvim/lua/user updated: 6f246744d4...b7dea1ae66
@@ -43,16 +43,20 @@ function section_install
|
||||
ext_gh)
|
||||
bash "$DOTFILES/scripts/install-gh-extensions.sh" && msg_done "🎉 Extensions for GitHub CLI have been installed!"
|
||||
;;
|
||||
ext_npm)
|
||||
bash "$DOTFILES/scripts/install-npm-packages.sh" && msg_done "NPM Packages have been installed!"
|
||||
;;
|
||||
settler)
|
||||
bash "$DOTFILES/scripts/settler.sh" && msg_done "🎉 Settler has been run!"
|
||||
;;
|
||||
*)
|
||||
menu_section "$USAGE_PREFIX" "all | antigen | brew | ext_gh | ext_go | macos | settler"
|
||||
menu_section "$USAGE_PREFIX" "all | antigen | brew | ext_gh | ext_go | ext_npm | macos | settler"
|
||||
menu_item "all" "Installs antigen, macos, brew, ext_gh and ext_go"
|
||||
menu_item "antigen" "Updates the antigen.zsh file"
|
||||
menu_item "brew" "Install Brewfile contents"
|
||||
menu_item "ext_gh" "Install GitHub CLI Extensions"
|
||||
menu_item "ext_go" "Install Go Packages"
|
||||
menu_item "ext_npm" "Install NPM Packages"
|
||||
menu_item "macos" "Setup nice macOS defaults"
|
||||
menu_item "settler" "Runs the WIP settler.sh"
|
||||
;;
|
||||
|
||||
30
scripts/install-dotfiles.sh
Normal file → Executable file
30
scripts/install-dotfiles.sh
Normal file → Executable file
@@ -66,6 +66,35 @@ handle_file_ln() {
|
||||
handle_file_ln "$HOME/.dotfiles/bash_profile" "$HOME/.bash_profile"
|
||||
handle_file_ln "$HOME/.dotfiles/bashrc" "$HOME/.bashrc"
|
||||
handle_file_ln "$HOME/.dotfiles/config/alias" "$HOME/.config/alias"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/LICENSE" "$HOME/.config/astronvim/lua/user/LICENSE"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/autocmds.lua" "$HOME/.config/astronvim/lua/user/autocmds.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/cmp/source_priority.lua" "$HOME/.config/astronvim/lua/user/cmp/source_priority.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/colorscheme.lua" "$HOME/.config/astronvim/lua/user/colorscheme.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/default_theme/highlights.lua" "$HOME/.config/astronvim/lua/user/default_theme/highlights.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/default_theme/plugins.lua" "$HOME/.config/astronvim/lua/user/default_theme/plugins.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/diagnostics.lua" "$HOME/.config/astronvim/lua/user/diagnostics.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/highlights/init.lua" "$HOME/.config/astronvim/lua/user/highlights/init.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/init.lua" "$HOME/.config/astronvim/lua/user/init.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/lsp/on_attach.lua" "$HOME/.config/astronvim/lua/user/lsp/on_attach.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/lsp/server-settings/clangd.lua" "$HOME/.config/astronvim/lua/user/lsp/server-settings/clangd.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/lsp/server-settings/sumneko_lua.lua" "$HOME/.config/astronvim/lua/user/lsp/server-settings/sumneko_lua.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/lsp/server-settings/tsserver.lua" "$HOME/.config/astronvim/lua/user/lsp/server-settings/tsserver.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/lsp/server-settings/yamlls.lua" "$HOME/.config/astronvim/lua/user/lsp/server-settings/yamlls.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/mappings.lua" "$HOME/.config/astronvim/lua/user/mappings.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/options.lua" "$HOME/.config/astronvim/lua/user/options.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/plugins/bufferline.lua" "$HOME/.config/astronvim/lua/user/plugins/bufferline.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/plugins/cmp.lua" "$HOME/.config/astronvim/lua/user/plugins/cmp.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/plugins/init.lua" "$HOME/.config/astronvim/lua/user/plugins/init.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/plugins/lsp-inlayhints.lua" "$HOME/.config/astronvim/lua/user/plugins/lsp-inlayhints.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/plugins/lspkind.lua" "$HOME/.config/astronvim/lua/user/plugins/lspkind.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/plugins/mason-lspconfig.lua" "$HOME/.config/astronvim/lua/user/plugins/mason-lspconfig.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/plugins/neoscroll.lua" "$HOME/.config/astronvim/lua/user/plugins/neoscroll.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/plugins/null-ls.lua" "$HOME/.config/astronvim/lua/user/plugins/null-ls.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/plugins/treesitter.lua" "$HOME/.config/astronvim/lua/user/plugins/treesitter.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/plugins/zen-mode.lua" "$HOME/.config/astronvim/lua/user/plugins/zen-mode.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/polish.lua" "$HOME/.config/astronvim/lua/user/polish.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/updater.lua" "$HOME/.config/astronvim/lua/user/updater.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/astronvim/lua/user/which-key/register.lua" "$HOME/.config/astronvim/lua/user/which-key/register.lua"
|
||||
handle_file_ln "$HOME/.dotfiles/config/exports" "$HOME/.config/exports"
|
||||
handle_file_ln "$HOME/.dotfiles/config/flipperdevices.com/qFlipper.ini" "$HOME/.config/flipperdevices.com/qFlipper.ini"
|
||||
handle_file_ln "$HOME/.dotfiles/config/functions" "$HOME/.config/functions"
|
||||
@@ -174,6 +203,7 @@ handle_file_ln "$HOME/.dotfiles/local/bin/x-until-success" "$HOME/.local/bin/x-u
|
||||
handle_file_ln "$HOME/.dotfiles/local/bin/x-when-down" "$HOME/.local/bin/x-when-down"
|
||||
handle_file_ln "$HOME/.dotfiles/local/bin/x-when-up" "$HOME/.local/bin/x-when-up"
|
||||
handle_file_ln "$HOME/.dotfiles/rcrc" "$HOME/.rcrc"
|
||||
handle_file_ln "$HOME/.dotfiles/shellcheckrc" "$HOME/.shellcheckrc"
|
||||
handle_file_ln "$HOME/.dotfiles/ssh/allowed_signers" "$HOME/.ssh/allowed_signers"
|
||||
handle_file_ln "$HOME/.dotfiles/ssh/config" "$HOME/.ssh/config"
|
||||
handle_file_ln "$HOME/.dotfiles/vuerc" "$HOME/.vuerc"
|
||||
|
||||
0
scripts/install-go-packages.sh
Normal file → Executable file
0
scripts/install-go-packages.sh
Normal file → Executable file
36
scripts/install-npm-packages.sh
Executable file
36
scripts/install-npm-packages.sh
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env zsh
|
||||
# Install npm packages globally.
|
||||
|
||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
||||
|
||||
if ! command -v npm &> /dev/null; then
|
||||
msg_err "npm could not be found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
packages=(
|
||||
# This is a tool to check if your files consider your .editorconfig rules.
|
||||
"editorconfig-checker"
|
||||
# Node module to create a release or a changelog from
|
||||
# a tag and uses issues or commits to creating the release notes.
|
||||
"github-release-notes"
|
||||
"neovim"
|
||||
"prettier"
|
||||
"@bchatard/alfred-jetbrains"
|
||||
"@johnnymorganz/stylua-bin"
|
||||
"js-debug"
|
||||
"stylelint-lsp"
|
||||
"blade-formatter"
|
||||
)
|
||||
|
||||
for pkg in "${packages[@]}"; do
|
||||
# Trim spaces
|
||||
pkg=${pkg// /}
|
||||
# Skip comments
|
||||
if [[ ${pkg:0:1} == "#" ]]; then continue; fi
|
||||
|
||||
msg_run "Installing npm package:" "$pkg"
|
||||
npm install -g --force --no-fund --no-progress --no-timing "$pkg"
|
||||
echo ""
|
||||
done
|
||||
|
||||
0
scripts/shared.sh
Normal file → Executable file
0
scripts/shared.sh
Normal file → Executable file
6
shellcheckrc
Normal file
6
shellcheckrc
Normal file
@@ -0,0 +1,6 @@
|
||||
# This is shellcheck configuration file.
|
||||
|
||||
# Set whether or not to follow arbitrary file
|
||||
# paths in source statements (since 0.8.0).
|
||||
external-sources=true
|
||||
|
||||
Reference in New Issue
Block a user