mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-11 05:39:45 +08:00
Compare commits
9 Commits
48cb1960f1
...
2ec94d705b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ec94d705b | ||
|
|
41c5b9677a | ||
|
|
116be8badd | ||
|
|
9df4ea095f | ||
|
|
1a253c375a | ||
|
|
67cd8c4673 | ||
|
|
0074e724f8 | ||
|
|
db66764f46 | ||
|
|
2119568d86 |
6
.github/workflows/dependencies.yml
vendored
6
.github/workflows/dependencies.yml
vendored
@ -13,12 +13,12 @@ jobs:
|
||||
contents: write # this is needed to push commits and branches
|
||||
steps:
|
||||
- name: Harden the runner (Audit all outbound calls)
|
||||
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
|
||||
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Authenticate as @ohmyzsh
|
||||
@ -28,7 +28,7 @@ jobs:
|
||||
app-id: ${{ secrets.OHMYZSH_APP_ID }}
|
||||
private-key: ${{ secrets.OHMYZSH_APP_PRIVATE_KEY }}
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
|
||||
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
||||
with:
|
||||
python-version: "3.12"
|
||||
cache: "pip"
|
||||
|
||||
8
.github/workflows/installer.yml
vendored
8
.github/workflows/installer.yml
vendored
@ -26,12 +26,12 @@ jobs:
|
||||
- macos-latest
|
||||
steps:
|
||||
- name: Harden the runner (Audit all outbound calls)
|
||||
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
|
||||
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
- name: Set up git repository
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- name: Install zsh
|
||||
if: runner.os == 'Linux'
|
||||
run: sudo apt-get update; sudo apt-get install zsh
|
||||
@ -47,12 +47,12 @@ jobs:
|
||||
- test
|
||||
steps:
|
||||
- name: Harden the runner (Audit all outbound calls)
|
||||
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
|
||||
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- name: Install Vercel CLI
|
||||
run: npm install -g vercel
|
||||
- name: Setup project and deploy
|
||||
|
||||
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -24,12 +24,12 @@ jobs:
|
||||
if: github.repository == 'ohmyzsh/ohmyzsh'
|
||||
steps:
|
||||
- name: Harden the runner (Audit all outbound calls)
|
||||
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
|
||||
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
- name: Set up git repository
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- name: Install zsh
|
||||
run: sudo apt-get update; sudo apt-get install zsh
|
||||
- name: Check syntax
|
||||
|
||||
2
.github/workflows/project.yml
vendored
2
.github/workflows/project.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
||||
if: github.repository == 'ohmyzsh/ohmyzsh'
|
||||
steps:
|
||||
- name: Harden the runner (Audit all outbound calls)
|
||||
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
|
||||
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
|
||||
with:
|
||||
egress-policy: audit
|
||||
- name: Authenticate as @ohmyzsh
|
||||
|
||||
6
.github/workflows/scorecard.yml
vendored
6
.github/workflows/scorecard.yml
vendored
@ -36,12 +36,12 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Harden the runner (Audit all outbound calls)
|
||||
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
|
||||
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
- name: "Checkout code"
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
@ -60,6 +60,6 @@ jobs:
|
||||
retention-days: 5
|
||||
|
||||
- name: "Upload to code-scanning"
|
||||
uses: github/codeql-action/upload-sarif@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v4.31.10
|
||||
uses: github/codeql-action/upload-sarif@45cbd0c69e560cd9e7cd7f8c32362050c9b7ded2 # v4.32.2
|
||||
with:
|
||||
sarif_file: results.sarif
|
||||
|
||||
73
plugins/magento2/README.md
Normal file
73
plugins/magento2/README.md
Normal file
@ -0,0 +1,73 @@
|
||||
```markdown
|
||||
# Magento 2
|
||||
|
||||
This plugin adds aliases for Magento2 commands.
|
||||
|
||||
```bash
|
||||
plugins=(... magento2)
|
||||
```
|
||||
|
||||
| Alias | Description |
|
||||
|:-:|:-:|
|
||||
| `magento`| `bin/magento` |
|
||||
| `mup` | `bin/magento setup:upgrade` |
|
||||
| `mdeploy` | `bin/magento setup:static-content:deploy -f` |
|
||||
| `mdi` | `bin/magento setup:di:compile` |
|
||||
|
||||
## Database
|
||||
|
||||
| Alias | Description |
|
||||
|:-:|:-:|
|
||||
| `mreindex` | `bin/magento indexer:reindex` |
|
||||
| `minf` | `bin/magento indexer:info` |
|
||||
| `mid` | `bin/magento indexer:disable` |
|
||||
| `mien` | `bin/magento indexer:enable` |
|
||||
|
||||
## Maintenance
|
||||
|
||||
| Alias | Description |
|
||||
|:-:|:-:|
|
||||
| `mmt` | `bin/magento maintenance:enable` |
|
||||
| `mmf` | `bin/magento maintenance:disable` |
|
||||
|
||||
## Clears
|
||||
|
||||
| Alias | Description |
|
||||
|:-:|:-:|
|
||||
| `mcc` | `bin/magento cache:clean` |
|
||||
| `mcf` | `bin/magento cache:flush` |
|
||||
| `mtcc` | `bin/magento cache:clean` |
|
||||
| `mtcf` | `bin/magento cache:flush` |
|
||||
| `mtccf` | `bin/magento cache:flush && bin/magento cache:clean` |
|
||||
|
||||
## Admin
|
||||
|
||||
| Alias | Description |
|
||||
|:-:|:-:|
|
||||
| `mac` | `bin/magento bin\magento a:u:c` |
|
||||
| `mau` | `bin/magento bin\magento a:u:u` |
|
||||
| `maurl` | `bin/magento bin\magento i:a` |
|
||||
|
||||
## Queues
|
||||
|
||||
| Alias | Description |
|
||||
|:-:|:-:|
|
||||
| `mqs` | `bin/magento queue:consumers:start` |
|
||||
|
||||
## Logs
|
||||
|
||||
| Alias | Description |
|
||||
|:-:|:-:|
|
||||
| `mlog`| `tail -f var/log/*.log` |
|
||||
| `mslog`| `tail -f var/log/system.log` |
|
||||
| `melog`| `tail -f var/log/exeption.log` |
|
||||
|
||||
## Development
|
||||
|
||||
| Alias | Description |
|
||||
|:-:|:-:|
|
||||
| `mms` | `'bin\magento module:status` |
|
||||
| `mme` | `'bin\magento module:enable` |
|
||||
| `mmd` | `'bin\magento module:disable` |
|
||||
|
||||
```
|
||||
47
plugins/magento2/magento2.plugin.zsh
Normal file
47
plugins/magento2/magento2.plugin.zsh
Normal file
@ -0,0 +1,47 @@
|
||||
#!zsh
|
||||
alias magento='bin/magento'
|
||||
|
||||
# Setup
|
||||
alias mup='bin/magento setup:upgrade'
|
||||
alias mdeploy='bin/magento setup:static-content:deploy -f'
|
||||
alias mdi='bin/magento setup:di:compile'
|
||||
|
||||
# Cache
|
||||
alias mcc='bin/magento cache:clean'
|
||||
alias mcf='bin/magento cache:flush'
|
||||
alias mccf='bin/magento cache:flush && bin/magento cache:clean'
|
||||
|
||||
# Database
|
||||
alias mreindex='bin/magento indexer:reindex'
|
||||
alias minf='bin/magento indexer:info'
|
||||
alias mid='bin/magento indexer:disable'
|
||||
alias mien='bin/magento indexer:enable'
|
||||
|
||||
# Maintenance
|
||||
alias mmt='bin/magento maintenance:enable'
|
||||
alias mmf='bin/magento maintenance:disable'
|
||||
|
||||
# Admin
|
||||
alias mrp='bin/magento admin:reset-password'
|
||||
|
||||
# Queue
|
||||
alias mqs='bin/magento queue:consumers:start'
|
||||
|
||||
# Logs
|
||||
alias mlog='tail -f var/log/*.log'
|
||||
alias mslog='tail -f var/log/system.log'
|
||||
alias melog='tail -f var/log/exeption.log'
|
||||
|
||||
# Custom
|
||||
alias mperm='chmod -R 777 var pub generated vendor app/etc'
|
||||
alias mmode='bin/magento deploy:mode:show'
|
||||
alias mmset='bin/magento deploy:mode:set'
|
||||
|
||||
# Deployment
|
||||
alias mms='bin\magento module:status'
|
||||
alias mme='bin\magento module:enable'
|
||||
alias mmd='bin\magento module:disable'
|
||||
alias ml='bin\magento list'
|
||||
alias mac='bin\magento a:u:c'
|
||||
alias mau='bin\magento a:u:u'
|
||||
alias maurl='bin/magento i:a'
|
||||
Loading…
Reference in New Issue
Block a user