dotfiles/home/.chezmoiscripts/unixlike/run_once_zsh-set-env.sh.tmpl
js0ny 2a1127bf10 refractor: on chezmoi
Add multiple variables in chezmoi.toml, apply a more detailed ignore rule

Use of chezmoi scripts

Use Neogit for default git GUI (TUI)

Integrate chezmoi with age
2025-11-08 07:24:43 +00:00

21 lines
429 B
Bash

#!/bin/sh
XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"
{{ if .wheel }}
if [ -f /etc/zshenv ]; then
sudo cp "$CHEZMOI_SOURCE_DIR/dot_config/zsh/global.zshenv" /etc/zshenv
fi
if [ -f /etc/zsh/zshenv ]; then
sudo cp "$CHEZMOI_SOURCE_DIR/dot_config/zsh/global.zshenv" /etc/zsh/zshenv
fi
{{ else }}
cp "$CHEZMOI_SOURCE_DIR/dot_config/zsh/global.zshenv" "$HOME/.zshenv"
{{ end }}
mkdir -p $XDG_STATE_HOME/zsh