mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +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
4
home/.chezmoiscripts/unixlike/run_once_bash.sh
Normal file
4
home/.chezmoiscripts/unixlike/run_once_bash.sh
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
# shellcheck shell=sh
|
||||
|
||||
sudo cp $CHEZMOI_SOURCE_DIR/dot_config/bash/xdg-compat.sh /etc/profile.d/xdg-compat.sh
|
||||
7
home/.chezmoiscripts/unixlike/run_once_rtorrent.sh
Normal file
7
home/.chezmoiscripts/unixlike/run_once_rtorrent.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
||||
|
||||
mkdir -p $XDG_DATA_HOME/rtorrent/session
|
||||
mkdir -p $XDG_DATA_HOME/rtorrent/watch
|
||||
|
||||
9
home/.chezmoiscripts/unixlike/run_once_vim.sh
Normal file
9
home/.chezmoiscripts/unixlike/run_once_vim.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"
|
||||
XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
||||
|
||||
|
||||
mkdir -p $XDG_DATA_HOME/vim/after
|
||||
mkdir -p $XDG_STATE_HOME/vim/{backup,swap,undo,view}
|
||||
|
||||
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