Compare commits

...

4 Commits

Author SHA1 Message Date
Lockszmith (@crater) 7f3a4b86a2 Add _home symlinks 2025-03-12 14:29:46 +00:00
Lockszmith (@crater) 8c05936e88 Align _home vim config to aliases 2025-03-12 14:27:27 +00:00
Lockszmith (@crater) d0c28747d2 Align chezmoi env in _home to _src.posix 2025-03-12 14:26:18 +00:00
Lockszmith (@crater) 6c93527142 Fix init process - reducing assumptions 2025-03-12 14:17:55 +00:00
16 changed files with 14 additions and 10 deletions

View File

@ -15,7 +15,8 @@
{{- $chassisType = "desktop" }}
{{- end }}
{{- else if eq .chezmoi.os "linux" }}
{{- $chassisType = (output "hostnamectl" "--json=short" | mustFromJson).Chassis }}
# $chassisType = (output "hostnamectl" "--json=short" | mustFromJson).Chassis }}
{{- $chassisType = "server" }}
{{- else if eq .chezmoi.os "windows" }}
{{- $sysType = "windows" }}
{{- $chassisType = (output "powershell.exe" "-NoProfile" "-NonInteractive" "-Command" "if ((Get-CimInstance -Class Win32_Battery | Measure-Object).Count -gt 0) { Write-Output 'laptop' } else { Write-Output 'desktop' }") | trim }}

View File

@ -7,6 +7,7 @@ cd "$CHEZMOI_SOURCE_DIR"
#CZ_MODEL="$(ioreg -l | grep "product-name" | sed -Ee 's/^.*\<"(.*)\"\>.*$/\1/')"
set | grep '^CZ_'
printf 'System detected as %s/%s, setting up .chezmoiroot and initializing...\n' "$CZ_SYS" "$CZ_CHASSIS"
set -x
if [ -r "base.chezmoiroot.$CZ_SYS.$CZ_CHASSIS" ]; then
ln -s "base.chezmoiroot.$CZ_SYS.$CZ_CHASSIS" .chezmoiroot
elif [ -r "base.chezmoiroot.$CZ_SYS" ]; then

View File

@ -0,0 +1 @@
../../../_src.posix/private_dot_config/pet/config.toml

View File

@ -0,0 +1 @@
../../../_src.posix/private_dot_config/pet/snippet.toml

View File

@ -0,0 +1 @@
../../../_src.posix/private_dot_config/sz.env/zza_pet.env

View File

@ -1 +0,0 @@
../../../_src.posix/private_dot_config/sz.env/zzz_chezmoi.env

View File

@ -0,0 +1 @@
../../../_src.posix/private_dot_config/sz.env/zzz_chezmoi.env.tmpl

View File

@ -0,0 +1 @@
../../../_src.posix/private_dot_local/bin/executable_auto-copy-ssh-id

View File

@ -1 +0,0 @@
../../../_src.posix/private_dot_local/bin/symlink_nvim

View File

@ -1 +0,0 @@
../../../_src.posix/private_dot_local/bin/symlink_vi

View File

@ -1 +0,0 @@
../../../_src.posix/private_dot_local/bin/symlink_vim

View File

@ -1 +0,0 @@
../../../_src.posix/private_dot_local/bin/symlink_vim.tiny

View File

@ -1 +0,0 @@
../../../_src.posix/private_dot_local/bin/symlink_vimdiff

View File

@ -26,7 +26,8 @@
{{- $chassisType = "desktop" }}
{{- end }}
{{- else if eq .chezmoi.os "linux" }}
{{- $chassisType = (output "hostnamectl" "--json=short" | mustFromJson).Chassis }}
# $chassisType = (output "hostnamectl" "--json=short" | mustFromJson).Chassis }}
{{- $chassisType = "server" }}
{{- else if eq .chezmoi.os "windows" }}
{{- $sysType = "windows" }}
{{- $sysVendor = "pc" }}

View File

@ -8,7 +8,9 @@ alias ll='l -A'
alias sudo='sudo '
alias nvim='POSTFIX_BUITINS=1 command nvim -p '
is_cmd nvim \
&& alias nvim='POSTFIX_BUITINS=1 command nvim -p ' \
|| alias nvim='POSTFIX_BUITINS=1 command vim -p '
alias vi='nvim '
alias vim='nvim '
alias nvimdiff='nvim -d '

View File

@ -32,7 +32,7 @@ fi
mkdir -p "$DEST_DIR"
# Find all directories and recreate them in the destination
find "$SRC_DIR" -type d -mindepth 1 | while read -r dir; do
find "$SRC_DIR" -mindepth 1 -type d | while read -r dir; do
mkdir -p "$DEST_DIR/${dir#$SRC_DIR/}"
done