Put each group of functions into its own file (e.g. git.sh, dev.sh, ai.sh) under a single directory and load them from your shell config. junegunn.github
# ~/.config/fzf-scripts/*.sh and optional allow-list via FZF_SCRIPTS_ENABLED
FZF_SCRIPTS_DIR="${FZF_SCRIPTS_DIR:-$HOME/.config/fzf-scripts}"
FZF_SCRIPTS_ENABLED="${FZF_SCRIPTS_ENABLED:-}"