Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 21 additions & 5 deletions llmcat
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,27 @@

# Config
set -eo pipefail

# Default configuration values
CLIP_CMD=""
VERSION="1.0.0"
QUIET="true"
DEBUG="false"

custom_ignores="" # default ignore patterns if any
tree_only="false"

# -- New: Load configuration file --
# Allow overriding the default config file path via LLMCAT_CONFIG env variable
CONFIG_FILE="${LLMCAT_CONFIG:-$HOME/.llmcatrc}"
if [ -f "$CONFIG_FILE" ]; then
# Optionally, you can print a debug message if DEBUG is enabled
# (If DEBUG isn’t set yet, you can always echo or remove this line)
echo "Loading configuration from $CONFIG_FILE" >&2
source "$CONFIG_FILE"
fi
# -----------------------------------

# Help text
show_help() {
cat << EOF
Expand All @@ -18,11 +34,11 @@ Usage: llmcat [options] [path]
Options:
-h, --help Show this help message
-i, --ignore PATTERN Additional ignore patterns (grep -E format)
-v, --version Show version
-t, --tree-only Only output directory tree
-q, --quiet Silent mode (only copy to clipboard)
-p, --print Print copied files/content (default: quiet)
--debug Enable debug output
-v, --version Show version
-t, --tree-only Only output directory tree
-q, --quiet Silent mode (only copy to clipboard)
-p, --print Print copied files/content (default: quiet)
--debug Enable debug output

Interactive Mode (fzf):
tab - Select/mark multiple files
Expand Down