mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-06 04:20:23 +00:00
15 lines
211 B
Bash
Executable File
15 lines
211 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ $# -lt 1 ]]; then
|
|
echo "Usage: omarchy-hook [name] [args...]"
|
|
exit 1
|
|
fi
|
|
|
|
HOOK=$1
|
|
HOOK_PATH="$HOME/.config/omarchy/hooks/$1"
|
|
shift
|
|
|
|
if [[ -f $HOOK_PATH ]]; then
|
|
bash "$HOOK_PATH" "$@"
|
|
fi
|