mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-01-07 21:44:02 -05:00
CHANGES - Integrate notification sending into chat processing workflow - Add --notification and --notification-command CLI flags and help - Provide cross-platform providers: macOS, Linux, Windows with fallbacks - Escape shell metacharacters to prevent injection vulnerabilities - Truncate Unicode output safely for notification message previews - Update bash, zsh, fish completions with new notification options - Add docs and YAML examples for configuration and customization - Add unit tests for providers and notification integration paths
22 lines
642 B
YAML
22 lines
642 B
YAML
# Example Fabric configuration with notification support
|
|
# Save this to ~/.config/fabric/config.yaml to use as defaults
|
|
|
|
# Enable notifications by default for all commands
|
|
notification: true
|
|
|
|
# Optional: Use a custom notification command
|
|
# Examples:
|
|
# macOS with custom sound:
|
|
# notificationCommand: 'osascript -e "display notification \"$2\" with title \"$1\" sound name \"Ping\""'
|
|
#
|
|
# Linux with custom urgency:
|
|
# notificationCommand: 'notify-send --urgency=normal "$1" "$2"'
|
|
#
|
|
# Custom script:
|
|
# notificationCommand: '/path/to/custom-notification-script.sh "$1" "$2"'
|
|
|
|
# Other common settings
|
|
model: "gpt-4o"
|
|
temperature: 0.7
|
|
stream: true
|