Files
dotfiles/xxh/Justfile
Klagarge 67b4a84bd6 fix(xxh): plugin loading order
ll was overwritten by eza plugin. Custom plugin start now by zz to be
loaded at the end
2026-04-05 23:26:04 +02:00

23 lines
737 B
Makefile

# Variables
dotfiles_dir := justfile_directory()
plugin_dest := env("HOME") + "/.local/share/xxh-plugin-zsh-zz-my-zshrc"
xxh_config_dest := env("HOME") + "/.config/xxh/config.xxhc"
default:
@just --list
# Deploy and build xxh configuration
deploy:
@echo "Preparing local plugin..."
mkdir -p {{plugin_dest}}
rsync -av --delete {{dotfiles_dir}}/custom-zshrc/ {{plugin_dest}}/
# Force execution rights on the build script
chmod +x {{plugin_dest}}/build.sh
@echo "Generating configuration..."
mkdir -p ~/.config/xxh
# Replace placeholder with actual path
sed "s|__ZSHRC_PLUGIN_DIR__|{{plugin_dest}}|g" {{dotfiles_dir}}/config.xxhc.template > {{xxh_config_dest}}
@echo "Deployment successful!"