My scripts for all kinds of automation and workflows.
Most of these scripts have been written to run on Unix-like systems (Linux, macOS).
The following dependencies are used throughout this repository.
You may not need them all if you are only interested in a few scripts.
- aichat: CLI tool for interacting with AI models (used in changelog generation)
- bash: Unix shell and command language
- curl: Command-line tool for transferring data with URLs
- entr: Run arbitrary commands when files change
- fd: A simple, fast and user-friendly alternative to 'find'
- fzf: Command-line fuzzy finder
- git: Distributed version control system
- jq: Command-line JSON processor
- lsd: The next gen ls command
- python: Python interpreter (Python 3 recommended)
- ripgrep (rg): Regex directory search while respecting your gitignore
- shellcheck: Static analysis tool for shell scripts
- aws: AWS Command Line Interface
- gcloud: Google Cloud CLI
- gh: GitHub CLI brings GitHub to your terminal
- kubectl: Kubernetes command-line tool
- terraform: Infrastructure as code tool
- terraform-docs: Generate documentation for Terraform modules
- tflint: Terraform linter
- trivy: Vulnerability scanner for containers and infrastructure as code
Compatible with Unix-like systems including Linux and macOS. Many dependencies can be installed via package managers like apt, yum, pacman, yay, brew, etc.
bash <(curl -s https://raw.githubusercontent.com/grantcarthew/scripts/main/install-scripts)The above command will:
- Create a "${HOME}/bin" directory if it doesn't already exist
- Clone this repository into "${HOME}/bin/scripts"
- Add "${HOME}/bin/scripts" to your PATH environment variable
Review the lib directory and add to your PATH as desired.
Follow these instructions to get the scripts ready for execution.
You'll need git to be able to clone this repository.
Open a terminal and run the following commands making changes where you see fit:
mkdir -p "${HOME}/bin"
cd "${HOME}/bin"
git clone git@github.com:grantcarthew/scripts.git
cd -Add the ${HOME}/bin/scripts directory to your PATH environment variable:
echo 'export PATH="${PATH}:${HOME}/bin/scripts"' >> "${HOME}/.bashrc"Review the directories in the lib directory and add any you want to your bashrc.
This example is for the terraform scripts:
echo 'export PATH="${PATH}:${HOME}/bin/scripts/lib/terraform"' >> "${HOME}/.bashrc"The ai/ directory contains a comprehensive collection of AI prompts, roles, and templates:
- AI Roles: Domain-specific expert personas for cloud, development, and analysis
- Commands: Quick task-oriented prompts for immediate use
- Metaprompts: Advanced templates for creating other prompts
- Templates: Customizable frameworks for resumes and cover letters
Use these scripts to work with AI prompts:
get-airole [filter]: Copy role prompts to clipboardnew-airole [filter]: Save role prompts to ROLE.md file
- get-airole: AI Role Prompt Fetcher - copies prompts from the collection to clipboard
- get-aiscripts: Lists all AI-enhanced scripts in the repository
- get-clihelp: Get CLI command help
- get-definition: Get word definition with options
- new-aiproject: New AI Project Generator
- new-airole: AI Role Document Creator - saves prompts directly to ROLE.md
- gcm: Git Commit Generator
- gdr: Git Diff --staged Review
- gig: Git Ignore Generator (.gitignore)
- tpr: Terraform Plan Review
- ucl: Update Change Log