feat(xxh): add xxh config
Assisted-by: Gemini:gemini-3.1-pro
This commit is contained in:
22
xxh/Justfile
Normal file
22
xxh/Justfile
Normal file
@@ -0,0 +1,22 @@
|
||||
# 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!"
|
||||
Reference in New Issue
Block a user