23 lines
734 B
Makefile
23 lines
734 B
Makefile
# Variables
|
|
dotfiles_dir := justfile_directory()
|
|
plugin_dest := env("HOME") + "/.local/share/xxh-plugin-zsh-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!"
|