Git Helpers
Streamline your Git workflow with these repository management scripts.git-status.sh - Show Repository Status
git-status.sh - Show Repository Status
Display a color-coded summary of your Git repository’s status in Raycast’s menu bar.How it works:
- Uses
git status --shortto get concise repository status - Counts files by state: Added (green), Modified (yellow), Deleted (red), Untracked (blue)
- Updates every 5 minutes when displayed in menu bar
- Uses ANSI color codes for visual distinction
- Set
currentDirectoryPathto your repository location
git-switch-branch.sh - Switch Git Branch
git-switch-branch.sh - Switch Git Branch
Quickly switch to a different branch or create a new one.How it works:
- Takes optional branch name as argument
- Creates and switches to new branch if it doesn’t exist
- Defaults to current branch if no name provided
- Uses
git checkout --branchfor branch creation and switching
Docker Commands
Manage Docker containers directly from Raycast.docker-ps.sh - List Docker Containers
docker-ps.sh - List Docker Containers
View all running Docker containers.How it works:
- Checks if Docker is installed before running
- Executes
docker psto list running containers - Displays full output including container ID, image, status, and ports
- Provides helpful error message if Docker is not installed
Encoding & Decoding
Quickly encode and decode text data.base64-encode-input.sh - Base64 Encode Text
base64-encode-input.sh - Base64 Encode Text
Encode text to Base64 and copy to clipboard.How it works:
- Takes text input as argument
- Pipes text through
base64command - Automatically copies encoded result to clipboard using
pbcopy - Runs in silent mode for quick execution
base64-decode-input.sh - Base64 Decode Text
base64-decode-input.sh - Base64 Decode Text
Decode Base64 text back to original format.How it works:
- Takes Base64 encoded text as argument
- Uses
base64 --decodeto convert back to original - Copies decoded result to clipboard
- Ideal for quickly decoding JWT tokens, API responses, etc.
JSON Processing
json-stringify-text.js - Convert Text to JSON String
json-stringify-text.js - Convert Text to JSON String
Convert clipboard text to a JSON-escaped string.How it works:
- Reads text from clipboard using
pbpaste - Uses Node.js
JSON.stringify()to escape special characters - Copies stringified result back to clipboard
- Perfect for preparing text to embed in JSON documents
- Uses promises for async clipboard operations
ID Generation
generate-uuid.sh - Generate UUID
generate-uuid.sh - Generate UUID
Generate a universally unique identifier.How it works:
- Uses macOS built-in
uuidgencommand - Automatically copies UUID to clipboard
- Runs instantly in silent mode
- No dependencies required
- Perfect for generating IDs for databases, API keys, etc.
Usage Tips
Pro Tip: For Git scripts, update the
@raycast.currentDirectoryPath parameter to point to your repository. You can create multiple copies of these scripts for different projects.See Also
System Scripts
Battery, network, and system monitoring
App Integrations
Control Bear, Spotify, Safari, and more
Media Controls
Music, volume, and playback controls
Productivity
Todo lists, timers, and password managers

