1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-02-12 05:49:47 +08:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Sarah Noor
38c01a235f
feat(npm): add alias for npm run build (#12012)
Closes #12010
2023-10-28 17:48:45 +02:00
Josh Hubbard
cb86d378f2
feat(git-auto-fetch): fetch also submodules (#12001) 2023-10-28 10:37:50 +02:00
Marc Cornellà
7733e3ab57
ci: fix path filtering in installer workflow
See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-including-and-excluding-paths
2023-10-28 10:29:54 +02:00
Marc Cornellà
7348d12f8e
ci(vercel): add Content-Disposition header on installer
This allows doing something like

  curl -O https://install.ohmyz.sh

and have the `install.sh` file automatically saved to its right name.
2023-10-28 10:24:24 +02:00
5 changed files with 18 additions and 5 deletions

View File

@ -3,9 +3,9 @@ on:
workflow_dispatch: {} workflow_dispatch: {}
push: push:
paths: paths:
- tools/install.sh - 'tools/install.sh'
- .github/workflows/installer - '.github/workflows/installer/**'
- .github/workflows/installer.yml - '.github/workflows/installer.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

View File

@ -2,7 +2,16 @@
"headers": [ "headers": [
{ {
"source": "/((?!favicon.ico).*)", "source": "/((?!favicon.ico).*)",
"headers": [{ "key": "Content-Type", "value": "text/plain" }] "headers": [
{
"key": "Content-Type",
"value": "text/plain"
},
{
"key": "Content-Disposition",
"value": "inline; filename=\"install.sh\""
}
]
} }
], ],
"rewrites": [ "rewrites": [

View File

@ -29,7 +29,7 @@ function git-fetch-all {
date -R &>! "$gitdir/FETCH_LOG" date -R &>! "$gitdir/FETCH_LOG"
GIT_SSH_COMMAND="command ssh -o BatchMode=yes" \ GIT_SSH_COMMAND="command ssh -o BatchMode=yes" \
GIT_TERMINAL_PROMPT=0 \ GIT_TERMINAL_PROMPT=0 \
command git fetch --all 2>/dev/null &>> "$gitdir/FETCH_LOG" command git fetch --all --recurse-submodules=yes 2>/dev/null &>> "$gitdir/FETCH_LOG"
) &| ) &|
} }

View File

@ -30,6 +30,7 @@ plugins=(... npm)
| `npmi` | `npm info` | Run npm info | | `npmi` | `npm info` | Run npm info |
| `npmSe` | `npm search` | Run npm search | | `npmSe` | `npm search` | Run npm search |
| `npmrd` | `npm run dev` | Run npm run dev | | `npmrd` | `npm run dev` | Run npm run dev |
| `npmrb` | `npm run build` | Run npm run build |
## `npm install` / `npm uninstall` toggle ## `npm install` / `npm uninstall` toggle

View File

@ -73,6 +73,9 @@ alias npmSe="npm search"
# Run npm run dev # Run npm run dev
alias npmrd="npm run dev" alias npmrd="npm run dev"
# Run npm run build
alias npmrb="npm run build"
npm_toggle_install_uninstall() { npm_toggle_install_uninstall() {
# Look up to the previous 2 history commands # Look up to the previous 2 history commands
local line local line