mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-16 02:27:03 +01:00
feat: Add Pulumi plugin for Oh My Zsh
This commit is contained in:
parent
fa396ad771
commit
2a1de22d0c
2 changed files with 85 additions and 0 deletions
56
plugins/pulumi/README.md
Normal file
56
plugins/pulumi/README.md
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
# Pulumi Oh My Zsh Plugin
|
||||
|
||||
This is an **Oh My Zsh plugin** for the **Pulumi CLI**, providing:
|
||||
- 🚀 Short, intuitive aliases for common Pulumi commands
|
||||
- 🎯 Auto-completion support for Pulumi
|
||||
- 🔥 A **fuzzy stack selector** using `fzf`
|
||||
|
||||
## 📦 Installation
|
||||
|
||||
### **Option 1: Manual Installation**
|
||||
1. Clone this repository into your Oh My Zsh custom plugins folder:
|
||||
```bash
|
||||
git clone https://github.com/YOUR_GITHUB_USERNAME/zsh-pulumi ~/.oh-my-zsh/custom/plugins/pulumi
|
||||
```
|
||||
2. Enable the plugin in `~/.zshrc` by adding `pulumi` to your plugins list:
|
||||
```zsh
|
||||
plugins=(... pulumi)
|
||||
```
|
||||
3. Restart your shell or run:
|
||||
```bash
|
||||
source ~/.zshrc
|
||||
```
|
||||
|
||||
### **Option 2: Submit to Oh My Zsh**
|
||||
(Once merged into Oh My Zsh, users can just add `pulumi` to their `.zshrc` plugins list.)
|
||||
|
||||
---
|
||||
|
||||
## ⚡ Short Aliases
|
||||
|
||||
| Alias | Command | Description |
|
||||
|--------|--------------------------|----------------------------------|
|
||||
| `p` | `pulumi` | Shortcut for Pulumi CLI |
|
||||
| `pu` | `pulumi up` | Deploy infrastructure |
|
||||
| `pp` | `pulumi preview` | Show planned changes |
|
||||
| `pd` | `pulumi destroy` | Destroy all resources |
|
||||
| `pr` | `pulumi refresh` | Refresh state from cloud |
|
||||
| `ps` | `pulumi stack` | Show stack details |
|
||||
| `pss` | `pulumi stack select` | Switch stack |
|
||||
| `psh` | `pulumi stack history` | Show stack history |
|
||||
| `psi` | `pulumi stack init` | Initialize a new stack |
|
||||
| `psl` | `pulumi stack ls` | List available stacks |
|
||||
| `pso` | `pulumi stack output` | Show stack outputs |
|
||||
| `plog` | `pulumi logs -f` | Tail Pulumi logs in real-time |
|
||||
| `pcs` | `pulumi config set` | Set Pulumi configuration |
|
||||
|
||||
---
|
||||
|
||||
## 🎯 Autocompletion
|
||||
If `pulumi gen-completion zsh` is available, this plugin **automatically enables Pulumi auto-completion**.
|
||||
|
||||
---
|
||||
|
||||
## 🛠️ Contribution
|
||||
Feel free to open an issue or PR for improvements! 🚀
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue