Skip to content

olliecrow/commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Commands

Collection of useful scripts/commands.

Scripts are made for Mac.

Script Details

  • llm_copy.sh

    • Bundles allowed file types under provided paths into a single text file with headers.
    • Default behavior places the bundled file on the macOS clipboard; use --string to copy raw text instead.
    • Optional: --save-path <file> to save the bundle at a specific path. In file mode, that file is also placed on the clipboard; in string mode, the text is copied and written to the file.
    • Respects .gitignore when running inside a Git repository and skips hidden directories (eg .git, .venv).
    • Use llm . to copy the current directory.
    • Use llm --string . to copy as plain text.
    • Use llm . --save-path /tmp/bundle.txt to save and also place the file on the clipboard.
    • Use llm --string . --save-path=/tmp/bundle.txt to save and copy the text content.
    • Use llm /dir_0/ /dir_1/ /dir_2/ to bundle specific directories.
  • llm_git_diff.sh

    • Generates a Git diff (with any standard git diff arguments) and places the resulting file on the macOS clipboard.
    • Accepts the repo root or any subdirectory as the first argument.
    • Supports flags like --staged, commit ranges, and path filters.
    • Optional: --save-path <file> to write the diff to a specific file (which is also placed on the clipboard).
    • Includes untracked files by default (respects .gitignore). Use --exclude-untracked to skip them; internally the script uses git add -N and resets on exit. If you provide a pathspec after --, untracked detection is limited to that path.
    • Leaves the temporary diff file on disk so you can paste it where needed.
    • Use llm_diff . (alias below) to capture the current repository's diff.
    • Examples:
      • llm_diff . --staged
      • llm_diff . --exclude-untracked (skip untracked files)
      • llm_diff . --exclude-untracked -- path/inside/repo
      • llm_diff . --save-path /tmp/diff.txt
    • Note: script-specific options (like --save-path, --exclude-untracked) should appear before a standalone -- that introduces a pathspec.

External

Aliases/Commands

Suggest adding these as aliases (eg to ~/.bashrc).

alias llm="~/llm_copy.sh"
alias llm_diff="~/llm_git_diff.sh"
alias ccm="claude-monitor"
alias ccu="npx --yes ccusage@latest"

Then can use:

cd /dir/of/interest/
llm .
llm_diff . --staged

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages