1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-10-16 11:40:46 +00:00

Compare commits

...

6 commits

Author SHA1 Message Date
Pascal Luther
acb2c7f50c
Merge 145fa7b95b into 367e9381df 2024-09-23 19:03:44 +02:00
Carlo Sala
367e9381df
chore(git): fix typo 2024-09-23 17:32:44 +02:00
dependabot[bot]
f11cc8fea1
chore(deps): bump idna in /.github/workflows/dependencies (#12688)
Bumps [idna](https://github.com/kjd/idna) from 3.9 to 3.10.
- [Release notes](https://github.com/kjd/idna/releases)
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst)
- [Commits](https://github.com/kjd/idna/compare/v3.9...v3.10)

---
updated-dependencies:
- dependency-name: idna
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-22 16:20:33 +02:00
Pascal
145fa7b95b docs: updated aliases 2020-03-19 16:04:41 +01:00
Pascal
12dd539e68 chore: updated comments 2020-03-19 15:50:49 +01:00
Pascal
737e6f1c25 feat: added firebase plugin 2020-03-19 15:38:02 +01:00
4 changed files with 97 additions and 2 deletions

View file

@ -1,6 +1,6 @@
certifi==2024.8.30 certifi==2024.8.30
charset-normalizer==3.3.2 charset-normalizer==3.3.2
idna==3.9 idna==3.10
PyYAML==6.0.2 PyYAML==6.0.2
requests==2.32.3 requests==2.32.3
semver==3.0.2 semver==3.0.2

View file

@ -163,7 +163,7 @@ function git_current_branch() {
} }
# Outputs the name of the previously checked out branch # Outputs the name of the previously checked out branch
# Usage example: git pull origin $(git_current_branch) # Usage example: git pull origin $(git_previous_branch)
# rev-parse --symbolic-full-name @{-1} only prints if it is a branch # rev-parse --symbolic-full-name @{-1} only prints if it is a branch
function git_previous_branch() { function git_previous_branch() {
local ref local ref

View file

@ -0,0 +1,62 @@
## Firebase plugin
The Firebase plugin provides useful aliases for the [Firebase CLI](https://firebase.google.com/docs/cli).
To use it, add firebase to the plugins array of your zshrc file:
```
plugins=(... firebase)
```
## Aliases
Reference: https://firebase.google.com/docs/cli#admin-commands
### fbi: [firebase init](https://firebase.google.com/docs/cli#initialize_a_firebase_project)
| Alias | Command | Description |
| :---- | :----------------------------------------- | :--------------------------- |
| fbi | `firebase init` | Initialize a Firebase project |
### fbi: [firebase use](https://firebase.google.com/docs/cli#add_alias)
| Alias | Command | Description |
| :---- | :----------------------------------------- | :--------------------------- |
| fbu | `firebase use` | Use a firebase project |
| fbua | `firebase use -add` | Add and use a firebase project |
### fbs: [firebase serve](https://firebase.google.com/docs/cli#test-locally)
| Alias | Command | Description |
| :---- | :----------------------------------------- | :--------------------------- |
| fbs | `firebase serve` | Serve a Firebase project locally |
| fbs0 | `firebase serve --host 0.0.0.0` | Serve a Firebase projeczt on 0.0.0.0 |
| fbsh | `firebase serve --only hosting` | Serve a Firebase project locally (Only Hosting) |
| fbsf | `firebase serve --only functions` | Serve a Firebase project locally (only Functions) |
#### fbd [firebase deploy](https://firebase.google.com/docs/cli#partial_deploys)
| Alias | Command | Description |
| :---- | :----------------------------------------- | :--------------------------- |
| fbd | `firebase deploy` | Deploy Firebase (Complete) |
| fbdh | `firebase deploy --only hosting` | Deploy Firebase Hosting |
| fbdd | `firebase deploy --only database` | Deploy Firebase Realtime Database |
| fbds | `firebase deploy --only storage` | Deploy Firebase Storage |
| fbdfs | `firebase deploy --only firestore` | Deploy Firebase Firestore |
| fbdfsr | `firebase deploy --only firestore:rules` | Deploy Firebase Firestore (only Rules) |
| fbdfsi | `firebase deploy --only firestore:indexes` | Deploy Firebase Firestore (only Indexes) |
| fbdfu | `firebase deploy --only functions` | Deploy Firebase Functions |
#### fbf - [firebase functions](https://firebase.google.com/docs/cli#delete_functions)
| Alias | Command | Description |
| :---- | :----------------------------------------- | :--------------------------- |
| fbfd | `firebase functions:delete` | Delete Firebase Function |
#### fb... - Misc
| Alias | Command | Description |
| :---- | :----------------------------------------- | :--------------------------- |
| fbp | `firebase projects:list` | List all projects |

View file

@ -0,0 +1,33 @@
## Aliases
# https://firebase.google.com/docs/cli#admin-commands
# Only implemented often used commands.
# INIT (fbi) - https://firebase.google.com/docs/cli#initialize_a_firebase_project
alias fbi="firebase init"
# USE (fbu) - https://firebase.google.com/docs/cli#add_alias
alias fbu="firebase use"
alias fbua="firebase use -add"
# SERVE (fbs) - https://firebase.google.com/docs/cli#test-locally
alias fbs="firebase serve"
alias fbs0="firebase serve --host 0.0.0.0"
alias fbsh="firebase serve --only hosting"
alias fbsf="firebase serve --only functions"
# DEPLOY (gbd) - https://firebase.google.com/docs/cli#partial_deploys
alias fbd="firebase deploy"
alias fbdh="firebase deploy --only hosting"
alias fbdd="firebase deploy --only database"
alias fbds="firebase deploy --only storage"
alias fbdfs="firebase deploy --only firestore"
alias fbdfsr="firebase deploy --only firestore:rules"
alias fbdfsi="firebase deploy --only firestore:indexes"
alias fbdfu="firebase deploy --only functions"
# FUNCTIONS (fbf) - https://firebase.google.com/docs/cli#delete_functions
alias fbfd="firebase functions:delete"
# MISC (fb..)
alias fbp="firebase projects:list"