mirror of
https://github.com/js0ny/dotfiles.git
synced 2026-02-04 19:40:33 +00:00
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
This commit is contained in:
parent
5921775239
commit
2a1127bf10
38 changed files with 988 additions and 129 deletions
21
home/.chezmoiscripts/unixlike/run_once_zsh-set-env.sh.tmpl
Normal file
21
home/.chezmoiscripts/unixlike/run_once_zsh-set-env.sh.tmpl
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue