diff options
| author | hc <hc@email.ch> | 2024-09-19 12:19:32 +0800 |
|---|---|---|
| committer | hc <hc@email.ch> | 2024-09-19 12:23:03 +0800 |
| commit | fe118ae654fd001266e0620521b936790d49cb99 (patch) | |
| tree | 38ab27b62c150056cddd697a39a6a7557be3160f | |
| parent | dfdf3cb438d42622d2686ef05df0375788396f44 (diff) | |
changed
| -rw-r--r-- | setup.sh | 11 | ||||
| -rw-r--r-- | vm.sh | 4 |
2 files changed, 11 insertions, 4 deletions
| @@ -41,11 +41,18 @@ lvim.plugins = { | |||
| 41 | vim.cmd([[ | 41 | vim.cmd([[ |
| 42 | augroup netcat_clipboard | 42 | augroup netcat_clipboard |
| 43 | au! | 43 | au! |
| 44 | au TextYankPost * call system("openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 gb1.0nom.ch 5023", @") | 44 | au TextYankPost * call system("openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 p.0nom.ch 5023", @") |
| 45 | au TextYankPost * call system("openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 10.211.55.2 5023", @) | 45 | |
| 46 | augroup END | 46 | augroup END |
| 47 | ]]) | 47 | ]]) |
| 48 | 48 | ||
| 49 | -- Enable line wrapping | ||
| 50 | vim.wo.wrap = true | ||
| 51 | |||
| 52 | -- Optional: Make wrapped lines easier to read by indenting them | ||
| 53 | vim.wo.breakindent = true | ||
| 54 | vim.wo.breakindentopt = "shift:2" | ||
| 55 | |||
| 49 | -- Navigate to the next tab, shift-l, prev shift-h | 56 | -- Navigate to the next tab, shift-l, prev shift-h |
| 50 | vim.api.nvim_set_keymap('n', '<S-l>', ':BufferLineCycleNext<CR>', { noremap = true, silent = true }) | 57 | vim.api.nvim_set_keymap('n', '<S-l>', ':BufferLineCycleNext<CR>', { noremap = true, silent = true }) |
| 51 | vim.api.nvim_set_keymap('n', '<S-h>', ':BufferLineCyclePrev<CR>', { noremap = true, silent = true }) | 58 | vim.api.nvim_set_keymap('n', '<S-h>', ':BufferLineCyclePrev<CR>', { noremap = true, silent = true }) |
| @@ -138,8 +138,8 @@ case "$1" in | |||
| 138 | fi | 138 | fi |
| 139 | 139 | ||
| 140 | #nofail is present in the fstab which means that boot will continue even if it fails to mount | 140 | #nofail is present in the fstab which means that boot will continue even if it fails to mount |
| 141 | echo ' - growpart /dev/sda 5 ' >> user-data #do note that restart is required for the system to register the increased disk size | 141 | echo ' - growpart /dev/sda 4 ' >> user-data #do note that restart is required for the system to register the increased disk size |
| 142 | echo ' - sudo lvresize -l +100%FREE /dev/rocky/root' >> user-data | 142 | echo ' - sudo lvresize -l +100%FREE /dev/rocky/lvroot' >> user-data |
| 143 | echo ' - sudo dnf install -y epel-release dnf-utils' >> user-data | 143 | echo ' - sudo dnf install -y epel-release dnf-utils' >> user-data |
| 144 | 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 | 144 | 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 |
| 145 | echo ' - touch /root/runcmd_done' >> user-data | 145 | echo ' - touch /root/runcmd_done' >> user-data |
