2024-07-09 07:32:53 +02:00
|
|
|
# justfile for common household tasks
|
|
|
|
|
|
|
|
set shell := ["zsh", "-cu"]
|
2024-10-26 20:30:45 +02:00
|
|
|
dotfiles_repo := "/home/jas/repos/codeberg.org/hyperreal/dotfiles"
|
|
|
|
homedir := "/home/jas/"
|
|
|
|
configdir := "/home/jas/.config/"
|
2024-07-09 07:32:53 +02:00
|
|
|
|
2024-10-26 20:30:45 +02:00
|
|
|
refresh-doom-emacs:
|
|
|
|
rm -rf {{configdir}}/emacs
|
|
|
|
git clone --depth 1 https://github.com/doomemacs/doomemacs {{configdir}}/emacs
|
|
|
|
{{configdir}}/emacs/bin/doom install --force --verbose
|
2024-07-09 07:32:53 +02:00
|
|
|
|
2024-10-26 20:30:45 +02:00
|
|
|
deploy-dotfiles:
|
|
|
|
cp -rfv {{dotfiles_repo}}/just/.justfile {{homedir}}
|
|
|
|
cp -rfv {{dotfiles_repo}}/doom/.doom.d {{homedir}}
|
|
|
|
cp -fv {{dotfiles_repo}}/zsh/.zshrc {{homedir}}
|
|
|
|
cp -rfv {{dotfiles_repo}}/zsh/.zshrc.d {{homedir}}
|
|
|
|
cp -fv {{dotfiles_repo}}/zsh/.zshenv {{homedir}}
|
|
|
|
cp -rfv {{dotfiles_repo}}/config/.config/bat {{configdir}}
|
|
|
|
cp -rfv {{dotfiles_repo}}/config/.config/git {{configdir}}
|
|
|
|
cp -fv {{dotfiles_repo}}/config/.config/starship.toml {{configdir}}
|
|
|
|
cp -rfv {{dotfiles_repo}}/config/.config/zellij {{configdir}}
|
|
|
|
cp -rfv {{dotfiles_repo}}/config/.config/systemd {{configdir}}
|
2024-08-04 06:34:48 +02:00
|
|
|
|
2024-10-26 20:30:45 +02:00
|
|
|
save-dotfiles:
|
|
|
|
cp -fv {{homedir}}/.justfile {{dotfiles_repo}}/just/
|
|
|
|
cp -rfv {{homedir}}/.doom.d {{dotfiles_repo}}/doom/
|
|
|
|
cp -fv {{homedir}}/.zshrc {{dotfiles_repo}}/zsh/
|
|
|
|
cp -rfv {{homedir}}/.zshrc.d {{dotfiles_repo}}/zsh/
|
|
|
|
cp -fv {{homedir}}/.zshenv {{dotfiles_repo}}/zsh/
|
|
|
|
cp -rfv {{configdir}}/bat {{dotfiles_repo}}/config/.config/
|
|
|
|
cp -rfv {{configdir}}/git {{dotfiles_repo}}/config/.config/
|
|
|
|
cp -fv {{configdir}}/starship.toml {{dotfiles_repo}}/config/.config/
|
|
|
|
cp -rfv {{configdir}}/zellij {{dotfiles_repo}}/config/.config/
|
|
|
|
cp -rfv {{configdir}}/systemd {{dotfiles_repo}}/config/.config/
|
2024-07-09 07:32:53 +02:00
|
|
|
|
2024-10-26 20:30:45 +02:00
|
|
|
clean-dotfiles:
|
|
|
|
rm -fv {{homedir}}/.justfile
|
|
|
|
rm -rfv {{homedir}}/.doom.d
|
|
|
|
rm -fv {{homedir}}/.zshrc
|
|
|
|
rm -rfv {{homedir}}/.zshrc.d
|
|
|
|
rm -fv {{homedir}}/.zshenv
|
|
|
|
rm -rfv {{configdir}}/bat
|
|
|
|
rm -rfv {{configdir}}/git
|
|
|
|
rm -fv {{configdir}}/starship.toml
|
|
|
|
rm -rfv {{configdir}}/zellij
|
|
|
|
rm -rfv {{configdir}}/systemd
|