From 9a476ef5cd5a9fc3662a3da31325e0931f8c8b9a Mon Sep 17 00:00:00 2001 From: Lucas Media Date: Thu, 15 Oct 2026 09:42:22 +0000 Subject: [PATCH] move other dir to os_and_install asd --- .../bash_aliases.universal | 0 {other => os_and_install}/bashrc | 0 {other => os_and_install}/exports | 0 {other => os_and_install}/hosts | 0 os_and_install/install_nvim.sh | 84 +++++++++++++++++++ {other => os_and_install}/install_script.sh | 0 {other => os_and_install}/lazygit_config.yml | 0 {other => os_and_install}/smartd.conf | 0 {other => os_and_install}/ssh_config | 0 {other => os_and_install}/vimrc | 0 10 files changed, 84 insertions(+) rename {other => os_and_install}/bash_aliases.universal (100%) rename {other => os_and_install}/bashrc (100%) rename {other => os_and_install}/exports (100%) rename {other => os_and_install}/hosts (100%) create mode 100644 os_and_install/install_nvim.sh rename {other => os_and_install}/install_script.sh (100%) rename {other => os_and_install}/lazygit_config.yml (100%) rename {other => os_and_install}/smartd.conf (100%) rename {other => os_and_install}/ssh_config (100%) rename {other => os_and_install}/vimrc (100%) diff --git a/other/bash_aliases.universal b/os_and_install/bash_aliases.universal similarity index 100% rename from other/bash_aliases.universal rename to os_and_install/bash_aliases.universal diff --git a/other/bashrc b/os_and_install/bashrc similarity index 100% rename from other/bashrc rename to os_and_install/bashrc diff --git a/other/exports b/os_and_install/exports similarity index 100% rename from other/exports rename to os_and_install/exports diff --git a/other/hosts b/os_and_install/hosts similarity index 100% rename from other/hosts rename to os_and_install/hosts diff --git a/os_and_install/install_nvim.sh b/os_and_install/install_nvim.sh new file mode 100644 index 0000000..fd7082d --- /dev/null +++ b/os_and_install/install_nvim.sh @@ -0,0 +1,84 @@ +#!/usr/bin/env bash +set -e + +echo "Installing packages..." +sudo apt update + +sudo apt install -y \ + git \ + curl \ + unzip \ + build-essential \ + ripgrep \ + fd-find \ + npm \ + pipx \ + wl-clipboard \ + xclip \ + tmux + +echo "Installing latest Neovim..." +sudo snap install nvim --classic || true + +echo "Refreshing shell..." +hash -r + +echo "Installing language servers..." +sudo npm install -g \ + pyright \ + typescript \ + typescript-language-server \ + bash-language-server \ + prettier \ + eslint_d + +echo "Installing Python tools..." +pipx install black || true +pipx install isort || true +pipx install debugpy || true + +echo "Installing LazyVim..." +mv ~/.config/nvim ~/.config/nvim.bak.$(date +%s) 2>/dev/null || true +mv ~/.local/share/nvim ~/.local/share/nvim.bak.$(date +%s) 2>/dev/null || true + +git clone https://github.com/LazyVim/starter ~/.config/nvim +rm -rf ~/.config/nvim/.git + +mkdir -p ~/.config/nvim/lua/config + +cat > ~/.config/nvim/lua/config/options.lua <<'EOF' +vim.opt.clipboard = "unnamedplus" + +-- SSH + terminal copy compatibility +vim.opt.mouse = "" + +-- optional +vim.opt.relativenumber = true +vim.opt.number = true +EOF + +mkdir -p ~/.config/nvim/lua/plugins + +cat > ~/.config/nvim/lua/plugins/debug.lua <<'EOF' +return { + { import = "lazyvim.plugins.extras.dap.core" }, + { import = "lazyvim.plugins.extras.lang.python" }, +} +EOF + +echo +echo "Done." +echo +echo "Start Neovim:" +echo " nvim" +echo +echo "Then run:" +echo " :Lazy sync" +echo " :Mason" +echo +echo "Useful shortcuts:" +echo " Space Space Find files" +echo " Space / Search text" +echo " Space c f Format file" +echo " Space d b Toggle breakpoint" +echo " Space d c Start debugger" diff --git a/other/install_script.sh b/os_and_install/install_script.sh similarity index 100% rename from other/install_script.sh rename to os_and_install/install_script.sh diff --git a/other/lazygit_config.yml b/os_and_install/lazygit_config.yml similarity index 100% rename from other/lazygit_config.yml rename to os_and_install/lazygit_config.yml diff --git a/other/smartd.conf b/os_and_install/smartd.conf similarity index 100% rename from other/smartd.conf rename to os_and_install/smartd.conf diff --git a/other/ssh_config b/os_and_install/ssh_config similarity index 100% rename from other/ssh_config rename to os_and_install/ssh_config diff --git a/other/vimrc b/os_and_install/vimrc similarity index 100% rename from other/vimrc rename to os_and_install/vimrc