2022-03-12 22:00:25 +01:00
|
|
|
- defaults:
|
|
|
|
link:
|
|
|
|
create: true
|
|
|
|
relink: true
|
|
|
|
|
2022-08-28 23:10:51 +02:00
|
|
|
- clean: ['~', '${XDG_CONFIG_HOME}']
|
|
|
|
|
|
|
|
- shell:
|
2022-08-30 18:41:05 +02:00
|
|
|
- description: Set XDG environmental variables
|
|
|
|
command: source ./zsh/.zshenv
|
2022-10-31 18:21:24 +01:00
|
|
|
- description: Check that $XDG_CONFIG_HOME is set
|
|
|
|
command: >
|
|
|
|
if [ -z ${XDG_CONFIG_HOME+x} ]; then; \
|
|
|
|
echo "XDG_CONFIG_HOME is not yet set. Will use ~/.config"; \
|
|
|
|
XDG_CONFIG_HOME="${HOME}/.config"; \
|
|
|
|
fi
|
|
|
|
stdin: false
|
|
|
|
stdout: true
|
|
|
|
stderr: true
|
|
|
|
quiet: true
|
|
|
|
- description: Check that $XDG_DATA_HOME is set
|
|
|
|
command: >
|
|
|
|
if [ -z ${XDG_DATA_HOME+x} ]; then; \
|
|
|
|
echo "XDG_DATA_HOME is not yet set. Will use ~/.local/share"; \
|
|
|
|
XDG_DATA_HOME="${HOME}/.local/share"; \
|
|
|
|
fi
|
|
|
|
stdin: false
|
|
|
|
stdout: true
|
|
|
|
stderr: true
|
|
|
|
quiet: true
|
2022-10-27 16:47:28 +02:00
|
|
|
|
|
|
|
# Symlink locations for files / directories
|
2022-03-12 22:00:25 +01:00
|
|
|
- link:
|
2022-10-27 16:47:28 +02:00
|
|
|
# Essential configs (ZSH, Vim, Tmux)
|
|
|
|
~/.zshenv: { path: zsh/.zshenv, force: true }
|
2022-08-28 23:10:51 +02:00
|
|
|
${XDG_CONFIG_HOME}/zsh: zsh
|
|
|
|
${XDG_CONFIG_HOME}/vim: vim
|
|
|
|
${XDG_CONFIG_HOME}/nvim: vim
|
2022-10-27 16:47:28 +02:00
|
|
|
${XDG_CONFIG_HOME}/tmux: tmux
|
2022-10-30 17:09:33 +01:00
|
|
|
${XDG_DATA_HOME}/tmux/tpm: lib/tpm
|
2022-10-27 16:47:28 +02:00
|
|
|
${XDG_DATA_HOME}/tmux/plugins/tpm: lib/tpm
|
|
|
|
|
|
|
|
# Utility config files
|
|
|
|
${XDG_CONFIG_HOME}/bash/.bashrc: config/.bashrc
|
|
|
|
${XDG_CONFIG_HOME}/git/.gitconfig: config/.gitconfig
|
|
|
|
${XDG_CONFIG_HOME}/.gitignore_global: config/.gitignore_global
|
|
|
|
${XDG_CONFIG_HOME}/.wgetrc: config/.wgetrc
|
|
|
|
|
|
|
|
# Bash utils
|
2022-08-28 23:10:51 +02:00
|
|
|
${XDG_CONFIG_HOME}/utils: utils
|
2022-10-27 16:47:28 +02:00
|
|
|
|
|
|
|
# MacOS-Only
|
|
|
|
${XDG_CONFIG_HOME}/yabai/yabairc:
|
2022-09-06 20:39:04 +02:00
|
|
|
if: '[ `uname` = Darwin ]'
|
2022-10-27 16:47:28 +02:00
|
|
|
path: config/macos/yabairc
|
|
|
|
${XDG_CONFIG_HOME}/skhd/skhdrc:
|
2022-09-06 20:39:04 +02:00
|
|
|
if: '[ `uname` = Darwin ]'
|
2022-10-27 16:47:28 +02:00
|
|
|
path: config/macos/skhdrc
|
2022-08-10 13:07:57 +02:00
|
|
|
~/.Brewfile:
|
|
|
|
if: '[ `uname` = Darwin ]'
|
2022-10-27 16:47:28 +02:00
|
|
|
path: scripts/installs/Brewfile
|
2022-08-10 13:07:57 +02:00
|
|
|
~/.finicky.js:
|
|
|
|
if: '[ `uname` = Darwin ]'
|
2022-10-27 16:47:28 +02:00
|
|
|
path: config/macos/.finicky.js
|
2022-08-28 23:10:51 +02:00
|
|
|
|
2022-10-27 16:47:28 +02:00
|
|
|
# If not already present, create home directories
|
2022-08-28 23:10:51 +02:00
|
|
|
- create:
|
|
|
|
- ~/Downloads
|
|
|
|
- ~/Documents
|
|
|
|
- ~/Applications
|