mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
feat(ideavim): Use intellimacs as base for ideavim
This commit is contained in:
parent
c3fa0c4b5c
commit
2ae16a5cf8
3 changed files with 87 additions and 19 deletions
84
Justfile
84
Justfile
|
|
@ -1,26 +1,76 @@
|
|||
set shell := ["fish", "-c"]
|
||||
set windows-shell := ["pwsh", "-c"]
|
||||
|
||||
check_info:
|
||||
shellcheck -x -s sh **/*.sh platforms/mac/yabairc
|
||||
shellcheck -x -s bash **/*.bash tools/bash/* scripts/*.{sh,zsh,bash} **/*.bashrc
|
||||
check:
|
||||
shellcheck -x -s sh --severity=error **/*.sh platforms/mac/yabairc
|
||||
shellcheck -x -s bash --severity=error **/*.bash tools/bash/* **/*.bashrc
|
||||
format:
|
||||
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
|
||||
pull:
|
||||
git pull github master
|
||||
git pull codeberg master
|
||||
DOTFILES := join(home_directory(), ".dotfiles")
|
||||
XDG_CONFIG_HOME := \
|
||||
if env_var("XDG_CONFIG_HOME") != "" {env_var("XDG_CONFIG_HOME")} \
|
||||
else {
|
||||
if os_family() == "windows" {
|
||||
env_var("APPDATA")
|
||||
} else {
|
||||
join(home_directory(), ".config")
|
||||
}
|
||||
}
|
||||
|
||||
push:
|
||||
git push github master
|
||||
git push codeberg master
|
||||
XDG_DATA_HOME := \
|
||||
if env_var("XDG_DATA_HOME") != "" {env_var("XDG_DATA_HOME")} \
|
||||
else {
|
||||
if os_family() == "windows" {
|
||||
env_var("LOCALAPPDATA")
|
||||
} else {
|
||||
join(home_directory(), ".local/share")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
test:
|
||||
echo {{DOTFILES}}
|
||||
echo {{XDG_CONFIG_HOME}}
|
||||
echo {{XDG_DATA_HOME}}
|
||||
|
||||
init:
|
||||
git remote remove origin
|
||||
git remote add github git@github.com:js0ny/dotfiles.git
|
||||
git remote add codeberg git@codeberg.org:js0ny/dotfiles.git
|
||||
|
||||
check:
|
||||
@just check_shell
|
||||
format:
|
||||
@just format_shell
|
||||
|
||||
|
||||
push:
|
||||
git push github master
|
||||
git push codeberg master
|
||||
|
||||
setup:
|
||||
@just ideavim
|
||||
|
||||
ideavim:
|
||||
ln -sf {{DOTFILES}}/common/ideavimrc $XDG_CONFIG_HOME/ideavim/ideavimrc
|
||||
git clone https://github.com/MarcoIeni/intellimacs {{join(home_directory(), ".local/share/intellimacs")}}
|
||||
|
||||
[private]
|
||||
pull:
|
||||
git pull github master
|
||||
git pull codeberg master
|
||||
|
||||
|
||||
[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
|
||||
Loading…
Add table
Add a link
Reference in a new issue