mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 09:48:30 +02:00
feat: gcloud aliases (#226)
This commit is contained in:
39
home/base/tui/shell/aliases/gcloud.nu
Normal file
39
home/base/tui/shell/aliases/gcloud.nu
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
# Google Cloud CLI aliases
|
||||||
|
# Based on https://cloud.google.com/sdk/docs/configurations
|
||||||
|
# Note: Avoided conflicts with common git aliases (gc, gca, gcl, gcs, gcu, gs, etc.)
|
||||||
|
|
||||||
|
# Configuration management
|
||||||
|
export alias gccfg = gcloud config configurations create
|
||||||
|
export alias gcact = gcloud config configurations activate
|
||||||
|
export alias gclist = gcloud config configurations list
|
||||||
|
export alias gcdel = gcloud config configurations delete
|
||||||
|
export alias gcset = gcloud config set
|
||||||
|
export alias gcunset = gcloud config unset
|
||||||
|
export alias gcconfig = gcloud config list
|
||||||
|
|
||||||
|
# Authentication
|
||||||
|
export alias gclogin = gcloud auth login
|
||||||
|
export alias gcauth = gcloud auth list
|
||||||
|
export alias gcapp = gcloud auth application-default login
|
||||||
|
|
||||||
|
# Project management
|
||||||
|
export alias gcproj = gcloud config set project
|
||||||
|
export alias gcget = gcloud config get-value project
|
||||||
|
|
||||||
|
# Compute Engine
|
||||||
|
export alias gcinst = gcloud compute instances list
|
||||||
|
export alias gccreate = gcloud compute instances create
|
||||||
|
export alias gcdelete = gcloud compute instances delete
|
||||||
|
export alias gcssh = gcloud compute ssh
|
||||||
|
export alias gck8sget = gcloud container clusters get-credentials
|
||||||
|
|
||||||
|
# Storage
|
||||||
|
export alias gcst = gcloud storage
|
||||||
|
export alias gcstls = gcloud storage ls
|
||||||
|
export alias gcstcp = gcloud storage cp
|
||||||
|
export alias gcstrm = gcloud storage rm
|
||||||
|
|
||||||
|
# General shortcuts
|
||||||
|
export alias gcloud = gcloud
|
||||||
|
export alias gcinfo = gcloud info
|
||||||
|
export alias gcver = gcloud version
|
||||||
@@ -43,6 +43,7 @@ in
|
|||||||
# use aliases/git/git-aliases.nu *
|
# use aliases/git/git-aliases.nu *
|
||||||
use aliases/eza/eza-aliases.nu *
|
use aliases/eza/eza-aliases.nu *
|
||||||
use aliases/bat/bat-aliases.nu *
|
use aliases/bat/bat-aliases.nu *
|
||||||
|
use ${./aliases/gcloud.nu} *
|
||||||
|
|
||||||
# modules
|
# modules
|
||||||
use modules/argx *
|
use modules/argx *
|
||||||
Reference in New Issue
Block a user