From fe118ae654fd001266e0620521b936790d49cb99 Mon Sep 17 00:00:00 2001 From: hc Date: Thu, 19 Sep 2024 12:19:32 +0800 Subject: changed --- setup.sh | 11 +++++++++-- vm.sh | 4 ++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/setup.sh b/setup.sh index fccfeb8..f3e18a6 100644 --- a/setup.sh +++ b/setup.sh @@ -41,11 +41,18 @@ lvim.plugins = { vim.cmd([[ augroup netcat_clipboard au! - au TextYankPost * call system("openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 gb1.0nom.ch 5023", @") - au TextYankPost * call system("openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 10.211.55.2 5023", @) + au TextYankPost * call system("openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 p.0nom.ch 5023", @") + augroup END ]]) +-- Enable line wrapping +vim.wo.wrap = true + +-- Optional: Make wrapped lines easier to read by indenting them +vim.wo.breakindent = true +vim.wo.breakindentopt = "shift:2" + -- Navigate to the next tab, shift-l, prev shift-h vim.api.nvim_set_keymap('n', '', ':BufferLineCycleNext', { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '', ':BufferLineCyclePrev', { noremap = true, silent = true }) diff --git a/vm.sh b/vm.sh index 5a925f0..ceafde4 100644 --- a/vm.sh +++ b/vm.sh @@ -138,8 +138,8 @@ case "$1" in fi #nofail is present in the fstab which means that boot will continue even if it fails to mount - echo ' - growpart /dev/sda 5 ' >> user-data #do note that restart is required for the system to register the increased disk size - echo ' - sudo lvresize -l +100%FREE /dev/rocky/root' >> user-data + echo ' - growpart /dev/sda 4 ' >> user-data #do note that restart is required for the system to register the increased disk size + echo ' - sudo lvresize -l +100%FREE /dev/rocky/lvroot' >> user-data echo ' - sudo dnf install -y epel-release dnf-utils' >> user-data echo ' - sudo dnf install -y nc xclip tmux htop tar tree wget curl mlocate nano vim unzip net-tools git python3 python3-pip make'>> user-data echo ' - touch /root/runcmd_done' >> user-data -- cgit v1.2.3-70-g09d2