mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
feat(just): Add justfiles for setup
This commit is contained in:
parent
d43a4b7106
commit
dae3143f86
12 changed files with 310 additions and 253 deletions
45
.just.d/check.just
Normal file
45
.just.d/check.just
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
|
||||
test:
|
||||
echo "DOTFILES={{DOTFILES}}"
|
||||
echo "XDG_CONFIG_HOME={{XDG_CONFIG_HOME}}"
|
||||
echo "XDG_DATA_HOME={{XDG_DATA_HOME}}"
|
||||
|
||||
|
||||
check:
|
||||
@just check_shell
|
||||
format:
|
||||
@just format_shell
|
||||
|
||||
|
||||
[private]
|
||||
[unix]
|
||||
check_shell:
|
||||
shellcheck -x -s sh --severity=error **/*.sh platforms/mac/yabairc
|
||||
shellcheck -x -s bash --severity=error **/*.bash tools/bash/* **/*.bashrc
|
||||
|
||||
[private]
|
||||
[unix]
|
||||
format_shell:
|
||||
shfmt -w -i 2 -ci -bn -p **/*.sh
|
||||
shfmt -w -i 2 -ci -bn -ln bash **/*.bash platforms/mac/sketchybar/sketchybarrc
|
||||
# Ignore syntax errors in zsh files
|
||||
shfmt -w -i 2 -ci -bn -ln bash **/*.zsh tools/zsh/**/* **/zshrc || true
|
||||
|
||||
[private]
|
||||
check_info:
|
||||
shellcheck -x -s sh **/*.sh platforms/mac/yabairc
|
||||
shellcheck -x -s bash **/*.bash tools/bash/* scripts/*.{sh,zsh,bash} **/*.bashrc
|
||||
|
||||
[private]
|
||||
init:
|
||||
git remote add github git@github.com:js0ny/dotfiles.git
|
||||
git remote add codeberg git@codeberg.org:js0ny/dotfiles.git
|
||||
|
||||
[private]
|
||||
push:
|
||||
git push github master
|
||||
git push codeberg master
|
||||
|
||||
[private]
|
||||
pull:
|
||||
git pull github master
|
||||
Loading…
Add table
Add a link
Reference in a new issue