1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-01-17 23:57:52 +08:00

Compare commits

...

3 Commits

Author SHA1 Message Date
guenthgr
cc73a929f6
feat(git): add gpod alias
Closes #11501
2023-02-17 17:30:39 +01:00
Carlo Sala
aace3a6144
chore: add .idea directory to .gitignore 2023-02-17 17:30:39 +01:00
Juan Antonio Ramírez
25368f9a65
fix(gcloud): add location of latest snap install (#11502)
Latest snap installs gcloud at /snap/google-cloud-cli, so add that to
the list of possible locations.
2023-02-17 08:09:00 +01:00
4 changed files with 5 additions and 1 deletions

3
.gitignore vendored
View File

@ -8,4 +8,5 @@ log/
.DS_Store
# editor configs
.vscode
.vscode
.idea

View File

@ -10,6 +10,7 @@ if [[ -z "${CLOUDSDK_HOME}" ]]; then
"/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk"
"/usr/share/google-cloud-sdk"
"/snap/google-cloud-sdk/current"
"/snap/google-cloud-cli/current"
"/usr/lib/google-cloud-sdk"
"/usr/lib64/google-cloud-sdk"
"/opt/google-cloud-sdk"

View File

@ -124,6 +124,7 @@ plugins=(... git)
| gpf | git push --force-with-lease (git version < 2.30) |
| gpf! | git push --force |
| gpoat | git push origin --all && git push origin --tags |
| gpod | git push origin --delete |
| gpr | git pull --rebase |
| gpu | git push upstream |
| gpv | git push --verbose |

View File

@ -242,6 +242,7 @@ is-at-least 2.30 "$git_version" \
|| alias gpf='git push --force-with-lease'
alias gpf!='git push --force'
alias gpoat='git push origin --all && git push origin --tags'
alias gpod='git push origin --delete'
alias gpr='git pull --rebase'
alias gpu='git push upstream'
alias gpv='git push --verbose'