mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
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
21 lines
429 B
Bash
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
|