From 81d9709c91d445a27e6b341d8d09558d277bc805 Mon Sep 17 00:00:00 2001 From: "Lockszmith (@crater)" Date: Mon, 7 Apr 2025 21:47:06 +0000 Subject: [PATCH 1/3] default to dark bg in vim --- _src.all/private_dot_config/vim/_init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_src.all/private_dot_config/vim/_init b/_src.all/private_dot_config/vim/_init index f19db37..ee86b35 100644 --- a/_src.all/private_dot_config/vim/_init +++ b/_src.all/private_dot_config/vim/_init @@ -1,3 +1,4 @@ +set bg=dark " Set custom Vim config directory let s:vim_config_dir = '~/.config/vim' let s:autoload_dir = s:vim_config_dir . '/autoload' @@ -13,7 +14,6 @@ endif set runtimepath+=~/.config/vim execute 'source ' . s:plug_vim - " Initialize vim-plug call plug#begin('~/.config/vim/plugged') From 8f197b24c51754b44b04fd273c9c4efcd459b66f Mon Sep 17 00:00:00 2001 From: "Lockszmith (@crater)" Date: Mon, 7 Apr 2025 21:49:00 +0000 Subject: [PATCH 2/3] support chezmoi externals in load-zellij --- .../private_dot_local/bin/executable_load-zellij | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/_src.posix/private_dot_local/bin/executable_load-zellij b/_src.posix/private_dot_local/bin/executable_load-zellij index ef170cb..7b10c37 100644 --- a/_src.posix/private_dot_local/bin/executable_load-zellij +++ b/_src.posix/private_dot_local/bin/executable_load-zellij @@ -27,13 +27,20 @@ if is_sourced; then } refresh-zellij() { ${SET:-:} -x - if [ -z "$(env which zellij)" ] && ! [ -x ~/.local/bin/zellij ]; then - if [[ ! -r /tmp/zellij/bootstrap/zellij ]]; then + local bin_path=~/.local/bin/zellij + local cached_path=~/.cache/chezmoi/tmp/zellij + if [ -z "$(env which zellij)" ] && [ -x "${cached_path}" ]; then + printf "Grabbing zellij from the web!\n" + cp "${cached_path}" "${bin_path}" + fi + local cached_path=/tmp/zellij/bootstrap/zellij + if [ -z "$(env which zellij)" ] && ! [ -x "${bin_path}" ]; then + if [[ ! -r "${cached_path}" ]]; then printf "Grabbing zellij from the web!\n" bash <(curl -sL zellij.dev/launch) "--help" > /dev/null 2>&1 || true fi - if [[ -r /tmp/zellij/bootstrap/zellij ]]; then - mv /tmp/zellij/bootstrap/zellij ~/.local/bin/zellij + if [[ -r "${cached_path}" ]]; then + mv "${cached_path}" "${bin_path}" rm -fR /tmp/zellij fi fi From 43d0c4784b58d5d58b413ad2be82f1c67bf083d8 Mon Sep 17 00:00:00 2001 From: "Lockszmith (@crater)" Date: Mon, 7 Apr 2025 21:49:59 +0000 Subject: [PATCH 3/3] skip nvim.AppImage on centos for now --- _src.posix/.chezmoiexternal.yaml.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_src.posix/.chezmoiexternal.yaml.tmpl b/_src.posix/.chezmoiexternal.yaml.tmpl index 510cbc7..9861e9c 100644 --- a/_src.posix/.chezmoiexternal.yaml.tmpl +++ b/_src.posix/.chezmoiexternal.yaml.tmpl @@ -226,7 +226,7 @@ url: "https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh" refreshPeriod: "{{ $defaultRefresh }}" -{{ if eq .chezmoi.os "linux" -}} +{{ if (and ( eq .chezmoi.os "linux" ) ( ne .chezmoi.osRelease.id "centos" )) -}} ".local/bin/nvim.AppImage": type: "file" url: "https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.appimage"