{"id":32655720,"url":"https://github.com/jawehrung/documentation_terminal_snippets","last_synced_at":"2026-07-08T09:31:16.684Z","repository":{"id":320626270,"uuid":"1080388373","full_name":"jawehrung/Documentation_Terminal_Snippets","owner":"jawehrung","description":"Documentation Terminal Snippets","archived":false,"fork":false,"pushed_at":"2025-11-08T17:14:11.000Z","size":277,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-08T19:10:11.745Z","etag":null,"topics":["android-studio","clion","cmd","datagrip","gogland","ide","intellij","jetbrains","phpstorm","pycharm","rubymine","shell","snippets","snippets-plugin","terminal","webstorm"],"latest_commit_sha":null,"homepage":"https://plugins.jetbrains.com/vendor/jawehrung","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jawehrung.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-21T09:49:39.000Z","updated_at":"2025-11-08T17:14:14.000Z","dependencies_parsed_at":"2025-10-24T22:17:08.406Z","dependency_job_id":"34cd4a8c-2782-422e-9ac3-2190e910824b","html_url":"https://github.com/jawehrung/Documentation_Terminal_Snippets","commit_stats":null,"previous_names":["jawehrung/documentation_terminal_snippets"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jawehrung/Documentation_Terminal_Snippets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jawehrung%2FDocumentation_Terminal_Snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jawehrung%2FDocumentation_Terminal_Snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jawehrung%2FDocumentation_Terminal_Snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jawehrung%2FDocumentation_Terminal_Snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jawehrung","download_url":"https://codeload.github.com/jawehrung/Documentation_Terminal_Snippets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jawehrung%2FDocumentation_Terminal_Snippets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35260671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android-studio","clion","cmd","datagrip","gogland","ide","intellij","jetbrains","phpstorm","pycharm","rubymine","shell","snippets","snippets-plugin","terminal","webstorm"],"created_at":"2025-10-31T10:28:52.318Z","updated_at":"2026-07-08T09:31:16.663Z","avatar_url":"https://github.com/jawehrung.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terminal Snippets\n\n\u003c!-- Plugin description --\u003e\nTerminal Snippets is an plugin that allows you to quickly inject predefined command snippets into the terminal.\n\n## Features\n\n- 🚀 Quick access to frequently used terminal commands\n- 📁 Organize snippets by categories with automatic submenus\n- 🔤 Dynamic variables (project info, date/time, clipboard, etc.)\n- 💬 Interactive variables (prompts, choices, confirmations)\n- ⚙️ Easy configuration through Settings \u003e Tools \u003e Terminal Snippets\n- 🎯 One-click command injection via terminal toolbar icon\n- 💾 Persistent storage of your custom snippets\n- 📤 Import/Export snippets as JSON\n- 🔄 Compatible with both Classic Terminal and Reworked Terminal 2025\n\n## Usage\n\n1. Configure your snippets in **Settings \u003e Tools \u003e Terminal Snippets**\n2. Open a terminal window (**View \u003e Tool Windows \u003e Terminal**)\n3. Click the **Terminal Snippets** icon in the terminal toolbar\n4. Select a snippet to inject it into the terminal\n\n## Thematic commands packages ready to install\n- 20 Predefined packages for popular developer tasks and tools : ([Github](https://github.com/jawehrung/Documentation_Terminal_Snippets/tree/master/snippets-templates))\n  - AWS CLI Commands\n  - Azure CLI Commands\n  - Compression Commands\n  - Docker Commands\n  - Dotnet Commands\n  - GCP CLI Commands\n  - Git Commands\n  - Go Commands\n  - Gradle Commands\n  - Kubernetes Commands\n  - Maven Commands\n  - Mongodb Commands\n  - MySQL Commands\n  - Npm Commands\n  - PostgreSQL Commands\n  - Python Commands\n  - Rust Commands\n  - Ssh Commands\n  - System Monitoring Commands\n  - Terraform Commands\n\n- One-click installation of multiple commands snippets\n- Save time configuring your favorite terminal commands\n\n\u003c!-- Plugin description end --\u003e\n\n## Installation\n\n### Manual Installation\n\n1. Download the latest `Terminal-Snippets-X.X.X.zip` from [my Jetbrains MarketPlace Page](https://plugins.jetbrains.com/vendor/jawehrung)\n2. Open your Jetbrains IDE\n3. Go to \u003ckbd\u003eSettings/Preferences\u003c/kbd\u003e \u003e \u003ckbd\u003ePlugins\u003c/kbd\u003e\n4. Click the \u003ckbd\u003e⚙️\u003c/kbd\u003e icon \u003e \u003ckbd\u003eInstall Plugin from Disk...\u003c/kbd\u003e\n5. Select the downloaded ZIP file\n6. Restart IntelliJ IDEA\n\n## Configuration\n\n1. Go to \u003ckbd\u003eSettings/Preferences\u003c/kbd\u003e \u003e \u003ckbd\u003eTools\u003c/kbd\u003e \u003e \u003ckbd\u003eTerminal Snippets\u003c/kbd\u003e\n2. Add your custom snippets with:\n   - **Name**: Display name of the snippet\n   - **Category**: Group snippets together (e.g., \"Build\", \"Git\", \"Docker\")\n   - **Command**: The command to inject (supports multi-line)\n3. Click \u003ckbd\u003eOK\u003c/kbd\u003e to save\n\n### Categories\n\n- Snippets are automatically organized by category in the dropdown menu\n- If you have multiple categories, they appear as submenus\n- If you have only one category, snippets are displayed in a flat list\n- Leave category blank to use the default \"General\" category\n\n### Import/Export\n\n- **Export**: Click the Export button to save your snippets as JSON with timestamp\n- **Import**: Click the Import button to load snippets from a JSON file\n- Duplicate snippets (same name + category) are automatically skipped during import\n\n## Variables\n\nTerminal Snippets supports both static and interactive variables in your commands.\n\n### Static Variables\n\nThese variables are automatically resolved when the snippet is executed:\n\n| Variable | Description | Example |\n|----------|-------------|----------|\n| `${PROJECT_NAME}` | Current project name | `echo \"Building ${PROJECT_NAME}\"` |\n| `${PROJECT_PATH}` | Current project path | `cd ${PROJECT_PATH}` |\n| `${MODULE_NAME}` | Current module name | `./gradlew :${MODULE_NAME}:test` |\n| `${FILE_PATH}` | Currently open file path | `cat ${FILE_PATH}` |\n| `${FILE_NAME}` | Current file name | `javac ${FILE_NAME}` |\n| `${FILE_DIR}` | Current file directory | `cd ${FILE_DIR}` |\n| `${PACKAGE_NAME}` | Package name (Java/Kotlin) | `echo \"Package: ${PACKAGE_NAME}\"` |\n| `${SELECTION}` | Selected text in editor | `echo \"${SELECTION}\"` |\n| `${CLIPBOARD}` | Clipboard content | `echo ${CLIPBOARD}` |\n| `${DATE}` | Current date (dd/MM/yyyy) | `echo \"Build date: ${DATE}\"` |\n| `${TIME}` | Current time (HH:mm:ss) | `echo \"Build time: ${TIME}\"` |\n| `${YEAR}` | Current year | `mkdir backup-${YEAR}` |\n| `${MONTH}` | Current month (01-12) | `echo \"Month: ${MONTH}\"` |\n| `${MONTH_NAME_SHORT}` | Short month name (Jan, Feb...) | `echo \"${MONTH_NAME_SHORT}\"` |\n| `${MONTH_NAME_FULL}` | Full month name (January...) | `echo \"${MONTH_NAME_FULL}\"` |\n| `${DAY}` | Current day (01-31) | `echo \"Day: ${DAY}\"` |\n| `${HOUR}` | Current hour (00-23) | `echo \"Hour: ${HOUR}\"` |\n| `${MINUTE}` | Current minute (00-59) | `echo \"Minute: ${MINUTE}\"` |\n| `${USERLOGIN}` | System username | `echo \"User: ${USERLOGIN}\"` |\n| `${USER_HOME}` | User home directory | `cp config ${USER_HOME}/.ssh/` |\n| `${OS_NAME}` | Operating system name | `echo \"OS: ${OS_NAME}\"` |\n| `${ENVVAR:VAR_NAME}` | Environment variable value | `echo \"Path: ${ENVVAR:PATH}\"` |\n| `${GIT_ROOT}` | Git repository root | `cd ${GIT_ROOT}` |\n| `${GIT_BRANCH}` | Current Git branch | `echo \"Branch: ${GIT_BRANCH}\"` |\n| `${GIT_COMMIT}` | Current commit hash (full) | `echo \"Commit: ${GIT_COMMIT}\"` |\n| `${GIT_COMMIT_SHORT}` | Current commit hash (short) | `git tag v1.0-${GIT_COMMIT_SHORT}` |\n| `${GIT_REMOTE}` | Git remote URL | `echo \"Remote: ${GIT_REMOTE}\"` |\n| `${GIT_USER_NAME}` | Git user name | `echo \"Author: ${GIT_USER_NAME}\"` |\n| `${GIT_USER_EMAIL}` | Git user email | `echo \"Email: ${GIT_USER_EMAIL}\"` |\n| `${GIT_TAG_LATEST}` | Latest Git tag | `echo \"Version: ${GIT_TAG_LATEST}\"` |\n| `${GRADLE_VERSION}` | Gradle version | `echo \"Gradle ${GRADLE_VERSION}\"` |\n| `${MAVEN_VERSION}` | Maven project version | `echo \"Maven ${MAVEN_VERSION}\"` |\n\n### Interactive Variables\n\nThese variables prompt the user for input when the snippet is executed:\n\n| Variable | Description | Example |\n|----------|-------------|----------|\n| `${VAR:Description}` | Simple text input | `git commit -m \"${VAR:Commit message}\"` |\n| `${VAR:Description:Default}` | Text input with default value | `docker run -p ${VAR:Port:8080}:8080 app` |\n| `${CHOICE:Description:opt1\\|opt2}` | Dropdown selection | `mvn clean ${CHOICE:Phase:install\\|package\\|deploy}` |\n| `${CONFIRM:Description}` | Yes/No confirmation | `echo \"Confirmed: ${CONFIRM:Delete files?}\"` |\n| `${PASSWORD:Description}` | Masked password input | `docker login -p ${PASSWORD:Docker password}` |\n| `${PATH:Description}` | File/folder picker | `cd ${PATH:Select directory}` |\n\n### Variable Examples\n\n**Build with timestamp:**\n```bash\necho \"Building ${PROJECT_NAME} on ${DATE} at ${TIME}\"\ngradlew clean build\n```\n\n**Interactive deployment:**\n```bash\ncd ${PROJECT_PATH}\nmvn clean ${CHOICE:Select phase:package|install|deploy}\necho \"Deployed by ${USERLOGIN} at ${TIME}\"\n```\n\n**Git-aware build:**\n```bash\necho \"Building ${PROJECT_NAME} from branch ${GIT_BRANCH}\"\necho \"Commit: ${GIT_COMMIT_SHORT}\"\ngradlew build -Pversion=${GIT_BRANCH}-${GIT_COMMIT_SHORT}\n```\n\n**Conditional execution:**\n```bash\necho \"Delete all logs?\"\nif [ \"${CONFIRM:Are you sure?}\" = \"yes\" ]; then\n  rm -rf logs/*\nfi\n```\n\n**Using environment variables:**\n```bash\necho \"Java Home: ${ENVVAR:JAVA_HOME}\"\necho \"Path: ${ENVVAR:PATH}\"\ndocker run -e API_KEY=${ENVVAR:API_KEY} myapp\n```\n\n**File operations:**\n```bash\n# Compile current file\njavac ${FILE_DIR}/${FILE_NAME}\njava ${PACKAGE_NAME}.${FILE_NAME%.java}\n\n# Backup to home\ncp ${FILE_PATH} ${USER_HOME}/backup/${FILE_NAME}\n```\n\n**Multi-module project:**\n```bash\n# Test specific module\n./gradlew :${MODULE_NAME}:test\n\n# Build with version from Git\ncd ${GIT_ROOT}\n./gradlew :${MODULE_NAME}:build -Pversion=${GIT_TAG_LATEST}\n```\n\n**Cross-platform script:**\n```bash\necho \"Running on ${OS_NAME}\"\necho \"Gradle version: ${GRADLE_VERSION}\"\necho \"Built by ${GIT_USER_NAME} \u003c${GIT_USER_EMAIL}\u003e\"\n```\n\n## Default Snippets\n\nThe plugin comes with two example snippets:\n- **Pip Upgrade** (Category: Python)\n- **Git Status** (Category: Git)\n\n## Terminal Compatibility\n\n### Classic Terminal\n- ✅ Commands are injected into the prompt\n- ✅ Multi-line commands are supported\n- ✅ Press \u003ckbd\u003eEnter\u003c/kbd\u003e to execute\n- ✅ You can modify the command before execution\n\n### Reworked Terminal 2025\n- ✅ Commands are executed automatically\n- ✅ Multi-line commands execute line by line\n- ℹ️ No modification possible before execution (API limitation)\n\n\n---\nPlugin based on the [IntelliJ Platform Plugin Template][template].\n\n[template]: https://github.com/JetBrains/intellij-platform-plugin-template\n[docs:plugin-description]: https://plugins.jetbrains.com/docs/intellij/plugin-user-experience.html#plugin-description-and-presentation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjawehrung%2Fdocumentation_terminal_snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjawehrung%2Fdocumentation_terminal_snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjawehrung%2Fdocumentation_terminal_snippets/lists"}