Skip to content

Instantly share code, notes, and snippets.

@jonathanconway
Last active April 18, 2026 06:53
Show Gist options
  • Select an option

  • Save jonathanconway/e02299c061c31428a1f729739796af3c to your computer and use it in GitHub Desktop.

Select an option

Save jonathanconway/e02299c061c31428a1f729739796af3c to your computer and use it in GitHub Desktop.
Some handy shell commands for MacOS

Terminal

Increase the terminal buffer to 100kb so you can scroll up and see more output.

  • {command} is the command you want to run and see more output from
DEBUG_PRINT_LIMIT=100000; {command}

File system

List every file in every subfolder matching {pattern}.

  • {pattern} is a wildcard pattern, such as *.md
find . -name '{pattern}' -type f

Github

List the latest gists in your GitHub account

gh gist list --limit 1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment