@sebastienrousseau/dotfiles 0.2.464 β†’ 0.2.466

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/LICENSE +20 -17
  2. package/README.md +210 -382
  3. package/dist/Makefile +2 -2
  4. package/dist/bin/constants.d.ts +2 -2
  5. package/dist/bin/constants.d.ts.map +1 -1
  6. package/dist/bin/constants.js +1 -1
  7. package/dist/bin/constants.js.map +1 -1
  8. package/dist/filesizes.txt +170 -144
  9. package/dist/lib/README.md +6 -1
  10. package/dist/lib/aliases/README.md +51 -0
  11. package/dist/lib/aliases/archives/README.md +39 -67
  12. package/dist/lib/aliases/archives/archives.aliases.sh +128 -60
  13. package/dist/lib/aliases/cd/README.md +26 -9
  14. package/dist/lib/aliases/cd/cd.aliases.sh +1 -4
  15. package/dist/lib/aliases/chmod/README.md +48 -13
  16. package/dist/lib/aliases/chmod/chmod.aliases.sh +1 -1
  17. package/dist/lib/aliases/clear/README.md +33 -38
  18. package/dist/lib/aliases/clear/clear.aliases.sh +35 -33
  19. package/dist/lib/aliases/configuration/README.md +26 -37
  20. package/dist/lib/aliases/configuration/configuration.aliases.sh +40 -36
  21. package/dist/lib/aliases/default/README.md +26 -52
  22. package/dist/lib/aliases/default/default.aliases.sh +105 -44
  23. package/dist/lib/aliases/dig/README.md +23 -40
  24. package/dist/lib/aliases/dig/dig.aliases.sh +26 -29
  25. package/dist/lib/aliases/disk-usage/README.md +32 -0
  26. package/dist/lib/aliases/disk-usage/du.aliases.sh +84 -0
  27. package/dist/lib/aliases/editor/README.md +35 -33
  28. package/dist/lib/aliases/editor/editor.aliases.sh +13 -39
  29. package/dist/lib/aliases/find/README.md +42 -29
  30. package/dist/lib/aliases/find/find.aliases.sh +52 -26
  31. package/dist/lib/aliases/gcloud/README.md +59 -148
  32. package/dist/lib/aliases/gcloud/gcloud.aliases.sh +327 -138
  33. package/dist/lib/aliases/git/README.md +149 -0
  34. package/dist/lib/aliases/git/git.aliases.sh +535 -131
  35. package/dist/lib/aliases/gnu/README.md +85 -0
  36. package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +143 -109
  37. package/dist/lib/aliases/heroku/README.md +426 -0
  38. package/dist/lib/aliases/heroku/heroku.aliases.sh +1047 -288
  39. package/dist/lib/aliases/interactive/README.md +43 -0
  40. package/dist/lib/aliases/interactive/interactive.aliases.sh +48 -9
  41. package/dist/lib/aliases/jekyll/README.md +37 -0
  42. package/dist/lib/aliases/jekyll/jekyll.aliases.sh +49 -10
  43. package/dist/lib/aliases/list/README.md +38 -0
  44. package/dist/lib/aliases/list/list.aliases.sh +81 -30
  45. package/dist/lib/aliases/macOS/README.md +38 -0
  46. package/dist/lib/aliases/macOS/macos.aliases.sh +65 -0
  47. package/dist/lib/aliases/make/README.md +28 -0
  48. package/dist/lib/aliases/make/make.aliases.sh +30 -10
  49. package/dist/lib/aliases/mkdir/README.md +26 -0
  50. package/dist/lib/aliases/mkdir/mkdir.aliases.sh +24 -8
  51. package/dist/lib/aliases/npm/README.md +37 -0
  52. package/dist/lib/aliases/npm/npm.aliases.sh +54 -17
  53. package/dist/lib/aliases/permission/README.md +43 -0
  54. package/dist/lib/aliases/permission/permission.aliases.sh +73 -0
  55. package/dist/lib/aliases/pnpm/README.md +49 -0
  56. package/dist/lib/aliases/pnpm/pnpm.aliases.sh +70 -36
  57. package/dist/lib/aliases/ps/README.md +25 -0
  58. package/dist/lib/aliases/ps/ps.aliases.sh +14 -6
  59. package/dist/lib/aliases/rsync/README.md +21 -0
  60. package/dist/lib/aliases/rsync/rsync.aliases.sh +10 -4
  61. package/dist/lib/aliases/rust/README.md +57 -0
  62. package/dist/lib/aliases/rust/rust.aliases.sh +116 -39
  63. package/dist/lib/aliases/subversion/README.md +62 -0
  64. package/dist/lib/aliases/subversion/subversion.aliases.sh +4 -3
  65. package/dist/lib/aliases/sudo/README.md +23 -0
  66. package/dist/lib/aliases/sudo/sudo.aliases.sh +15 -6
  67. package/dist/lib/aliases/tmux/README.md +27 -0
  68. package/dist/lib/aliases/tmux/tmux.aliases.sh +29 -10
  69. package/dist/lib/aliases/update/README.md +34 -0
  70. package/dist/lib/aliases/update/update.aliases.sh +57 -26
  71. package/dist/lib/aliases/uuid/README.md +20 -0
  72. package/dist/lib/aliases/uuid/uuid.aliases.sh +13 -4
  73. package/dist/lib/aliases/wget/README.md +23 -0
  74. package/dist/lib/aliases/wget/wget.aliases.sh +15 -6
  75. package/dist/lib/aliases.sh +4 -3
  76. package/dist/lib/configurations/README.md +13 -2
  77. package/dist/lib/configurations/bash/bashrc +4 -3
  78. package/dist/lib/configurations/curl/curlrc +2 -2
  79. package/dist/lib/configurations/default/color.sh +3 -2
  80. package/dist/lib/configurations/default/constants.sh +4 -3
  81. package/dist/lib/configurations/default/editor.sh +3 -2
  82. package/dist/lib/configurations/default/prompt.sh +3 -2
  83. package/dist/lib/configurations/input/inputrc +2 -2
  84. package/dist/lib/configurations/nano/nanorc +2 -2
  85. package/dist/lib/configurations/profile/profile +2 -2
  86. package/dist/lib/configurations/tmux/default +2 -2
  87. package/dist/lib/configurations/tmux/display +6 -2
  88. package/dist/lib/configurations/tmux/linux +2 -2
  89. package/dist/lib/configurations/tmux/navigation +2 -2
  90. package/dist/lib/configurations/tmux/panes +2 -2
  91. package/dist/lib/configurations/tmux/theme +3 -3
  92. package/dist/lib/configurations/tmux/tmux +2 -2
  93. package/dist/lib/configurations/tmux/vi +2 -2
  94. package/dist/lib/configurations/vim/vimrc +1 -1
  95. package/dist/lib/configurations/wget/wgetrc +2 -2
  96. package/dist/lib/configurations/zsh/zshrc +2 -2
  97. package/dist/lib/configurations.sh +4 -3
  98. package/dist/lib/functions/README.md +73 -2
  99. package/dist/lib/functions/cdls.sh +3 -2
  100. package/dist/lib/functions/curlheader.sh +3 -2
  101. package/dist/lib/functions/curlstatus.sh +17 -0
  102. package/dist/lib/functions/curltime.sh +4 -3
  103. package/dist/lib/functions/encode64.sh +3 -2
  104. package/dist/lib/functions/environment.sh +3 -2
  105. package/dist/lib/functions/extract.sh +3 -2
  106. package/dist/lib/functions/filehead.sh +1 -1
  107. package/dist/lib/functions/freespace.sh +21 -0
  108. package/dist/lib/functions/genpwd.sh +33 -7
  109. package/dist/lib/functions/goto.sh +3 -2
  110. package/dist/lib/functions/hidehiddenfiles.sh +3 -2
  111. package/dist/lib/functions/hostinfo.sh +3 -2
  112. package/dist/lib/functions/hstats.sh +3 -2
  113. package/dist/lib/functions/httpdebug.sh +3 -2
  114. package/dist/lib/functions/keygen.sh +20 -13
  115. package/dist/lib/functions/last.sh +3 -2
  116. package/dist/lib/functions/logout.sh +3 -2
  117. package/dist/lib/functions/lowercase.sh +3 -2
  118. package/dist/lib/functions/matrix.sh +15 -14
  119. package/dist/lib/functions/mount_read_only.sh +3 -2
  120. package/dist/lib/functions/myproc.sh +4 -3
  121. package/dist/lib/functions/prependpath.sh +3 -2
  122. package/dist/lib/functions/ql.sh +3 -2
  123. package/dist/lib/functions/rd.sh +3 -2
  124. package/dist/lib/functions/remove_disk.sh +3 -2
  125. package/dist/lib/functions/ren.sh +3 -2
  126. package/dist/lib/functions/showhiddenfiles.sh +3 -2
  127. package/dist/lib/functions/size.sh +3 -2
  128. package/dist/lib/functions/stopwatch.sh +4 -3
  129. package/dist/lib/functions/uppercase.sh +3 -2
  130. package/dist/lib/functions/view-source.sh +3 -2
  131. package/dist/lib/functions/vscode.sh +3 -2
  132. package/dist/lib/functions/whoisport.sh +3 -2
  133. package/dist/lib/functions/zipf.sh +3 -2
  134. package/dist/lib/functions.sh +4 -3
  135. package/dist/lib/history.sh +4 -4
  136. package/dist/lib/paths/ant/ant.paths.sh +3 -2
  137. package/dist/lib/paths/default/default.paths.sh +3 -2
  138. package/dist/lib/paths/homebrew/homebrew.paths.sh +3 -2
  139. package/dist/lib/paths/java/java.paths.sh +3 -2
  140. package/dist/lib/paths/maven/maven.paths.sh +3 -2
  141. package/dist/lib/paths/node/node.paths.sh +3 -2
  142. package/dist/lib/paths/nvm/nvm.paths.sh +3 -2
  143. package/dist/lib/paths/pnpm/pnpm.paths.sh +3 -2
  144. package/dist/lib/paths/python/python.paths.sh +3 -2
  145. package/dist/lib/paths/ruby/ruby.paths.sh +3 -2
  146. package/dist/lib/paths/tmux/tmux.paths.sh +3 -2
  147. package/dist/lib/paths.sh +4 -3
  148. package/dist/scripts/backup.sh +3 -2
  149. package/dist/scripts/banner.sh +3 -2
  150. package/dist/scripts/build.sh +3 -2
  151. package/dist/scripts/clean.sh +3 -2
  152. package/dist/scripts/compile.sh +3 -2
  153. package/dist/scripts/copy.sh +3 -2
  154. package/dist/scripts/dotfiles.sh +3 -2
  155. package/dist/scripts/download.sh +3 -2
  156. package/dist/scripts/help.sh +3 -2
  157. package/dist/scripts/ssh.sh +3 -2
  158. package/dist/scripts/unpack.sh +3 -2
  159. package/package.json +7 -7
  160. package/dist/lib/aliases/du/README.md +0 -35
  161. package/dist/lib/aliases/du/du.aliases.sh +0 -37
  162. package/dist/lib/functions/changediskpwd.tmp +0 -19
  163. package/dist/lib/functions/code.tmp +0 -18
  164. package/dist/lib/functions/countdown.tmp +0 -34
  165. package/dist/lib/functions/headers.tmp +0 -4
  166. package/dist/lib/functions/history-all.tmp +0 -8
  167. package/dist/lib/functions/macos.sh +0 -47
  168. package/dist/lib/functions/mcd.tmp +0 -19
  169. package/dist/lib/functions/print.tmp +0 -14
  170. package/dist/lib/functions/rm.tmp +0 -14
  171. package/dist/lib/functions/rps.tmp +0 -104
  172. package/dist/lib/functions/trash.tmp +0 -14
  173. package/dist/lib/functions/tree.tmp +0 -14
  174. package/dist/lib/functions/uuidgen.tmp +0 -28
@@ -1,146 +1,335 @@
1
1
  #!/usr/bin/env bash
2
- # Author: Sebastien Rousseau
2
+
3
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.466) - <https://dotfiles.io>
4
+ # Made with β™₯ in London, UK by @wwdseb
3
5
  # Copyright (c) 2015-2023. All rights reserved
4
- # Description: Sets Google Cloud Aliases
5
6
  # License: MIT
6
7
  # Script: gcloud.aliases.sh
7
- # Version: 0.2.464
8
+ # Version: 0.2.466
8
9
  # Website: https://dotfiles.io
9
10
 
10
- if command -v 'gcloud' >/dev/null; then
11
-
12
- # Authenticate and authorize
13
- alias gcaasa='gcloud auth activate-service-account' # gcaasa: Like gcloud auth login but with service account credentials.
14
- alias gcacd='gcloud auth configure-docker' # gcacd: Configure Docker to use gcloud as a credential helper.
15
- alias gcal='gcloud auth list' # gcal: List the accounts you are logged in with.
16
- alias gcapat='gcloud auth print-access-token' # gcapat: Print the access token for the current active account.
17
- alias gcar='gcloud auth revoke' # gcar: Revoke credentials for the current active account.
18
-
19
- # App Engine
20
- alias gcapb='gcloud app browse' # gcapb: Open the App Engine app in your default browser.
21
- alias gcapc='gcloud app create' # gcapc: Create a new App Engine app.
22
- alias gcapd='gcloud app deploy' # gcapd: Deploy an App Engine app.
23
- alias gcapl='gcloud app logs read' # gcapl: Read the logs for an App Engine app.
24
- alias gcapv='gcloud app versions list' # gcapv: List the versions of an App Engine app.
25
-
26
- # Cloud SDK configuration and management
27
- alias gccca='gcloud config configurations activate' # gccca: Switch to an existing named configuration.
28
- alias gcccc='gcloud config configurations create' # gcccc: Create a new named configuration.
29
- alias gcccl='gcloud config configurations list' # gcccl: Display a list of all available configurations.
30
- alias gccl='gcloud config list' # gccl:Display all the properties for the current configuration.
31
- alias gccgv='gcloud config get-value' # gccgv: Fetch value of a Cloud SDK property.
32
- alias gccs='gcloud config set' # gccs: Define a property (like compute/zone) for the current configuration.
33
- alias gccsp='gcloud config set project' # gccsp: Set a default Google Cloud project to work on.
34
- alias gccu='gcloud components update' # gccu: Update your Cloud SDK to the latest version.
35
- alias gci='gcloud init' # gci: Initialize, authorize, and configure the gcloud tool.
36
- alias gcinf='gcloud info' # gcinf: Display current gcloud tool environment details.
37
- alias gciov='gcloud io verify-email' # gciov: Verify your email address for Google Cloud.
38
-
39
- # Container
40
- alias gcccc='gcloud container clusters create' # gcccc: Create a cluster to run GKE containers.
41
- alias gcccg='gcloud container clusters get-credentials' # gcccg: Update kubeconfig to get kubectl to use a GKE cluster.
42
- alias gcccl='gcloud container clusters list' # gcccl: List clusters for running GKE containers.
43
- alias gccil='gcloud container images list-tags' # gccil: List tag and digest metadata for a container image.
44
- alias gcd='gcloud container' # gcd: A convenience command group for all container-related commands.
45
-
46
- # IAM
47
- alias gciamk='gcloud iam service-accounts keys list' # gciamk: List a service account's keys.
48
- alias gciaml='gcloud iam list-grantable-roles' # gciaml: List IAM grantable roles for a resource.
49
- alias gciamp='gcloud iam service-accounts add-iam-policy-binding' # gciamp: Add an IAM policy binding to a service account.
50
- alias gciamr='gcloud iam roles create' # gciamr: Create a custom role for a project or org
51
- alias gciamd='gcloud iam roles delete' # gciamd: Delete a custom role for a project or org.
52
- alias gciampd='gcloud iam service-accounts remove-iam-policy-binding' # gciampd: Remove an IAM policy binding from a service account.
53
- alias gciamro='gcloud iam roles describe' # gciamro: Describe a custom role for a project or org.
54
- alias gciamsp='gcloud iam service-accounts set-iam-policy' # gciamsp: Replace the IAM policy of a service account.
55
- alias gciamu='gcloud iam roles undelete' # gciamu: Undelete a custom role for a project or org.
56
- alias gciamup='gcloud iam service-accounts update' # gciamup: Update a service account.
57
- alias gcimp='gcloud organizations list' # gcimp: List available Cloud Identity domains.
58
- alias gcimpe='gcloud organizations add-iam-policy-binding' # gcimpe: Add an IAM policy binding to a Cloud Identity domain.
59
- alias gcimpr='gcloud organizations remove-iam-policy-binding' # gcimpr: Remove an IAM policy binding from a Cloud Identity domain.
60
- alias gcsac='gcloud auth application-default login' # gcsac: Obtain an access token for the Google Cloud APIs.
61
-
62
- # Compute
63
- alias gcc='gcloud compute' # gcc: A convenience command group for all compute-related commands.
64
- alias gcpa='gcloud projects add-iam-policy-binding' # gcpa: Add an IAM policy binding to a specified project.
65
- alias gcpc='gcloud compute copy-files' # gcpc: Copy files.
66
- alias gcpd='gcloud projects describe' # gcpd: Display metadata for a project (including its ID).
67
- alias gcpdown='gcloud compute instances stop' # gcpdown: Stop instance.
68
- alias gcpds='gcloud compute disks snapshot' # gcpds: Create snapshot of persistent disks.
69
- alias gcpid='gcloud compute instances describe' # gcpid: Display a VM instance's details.
70
- alias gcpil='gcloud compute instances list' # gcpil: List all VM instances in a project.
71
- alias gcprm='gcloud compute instances delete' # gcprm: Delete instance.
72
- alias gcpsk='gcloud compute snapshots delete' # gcpsk: Delete a snapshot.
73
- alias gcpssh='gcloud compute ssh' # gcpssh: Connect to a VM instance by using SSH.
74
- alias gcpup='gcloud compute instances start' # gcpup: Start instance.
75
- alias gcpzl='gcloud compute zones list' # gcpzl:List Compute Engine zones.
76
-
77
- # Deployment Manager
78
- alias gcdm='gcloud deployment-manager' # gcdm: A convenience command group for all deployment-manager-related commands.
79
- alias gcdma='gcloud deployment-manager deployments create' # gcdma: Create a new deployment.
80
- alias gcdmd='gcloud deployment-manager deployments delete' # gcdmd: Delete a deployment.
81
- alias gcdmg='gcloud deployment-manager deployments describe' # gcdmg: Describe a deployment.
82
- alias gcdml='gcloud deployment-manager deployments list' # gcdml: List all deployments.
83
- alias gcdmu='gcloud deployment-manager deployments update' # gcdmu: Update a deployment.
84
-
85
- # DNS
86
- alias gcdns='gcloud dns' # gcdns: A convenience command group for all dns-related commands.
87
- alias gcdnsz='gcloud dns managed-zones' # gcdnsz: List managed DNS zones.
88
- alias gcdnsc='gcloud dns record-sets changes' # gcdnsc: List or apply DNS record sets changes.
89
- alias gcdnsd='gcloud dns managed-zones delete' # gcdnsd: Delete a managed DNS zone.
90
- alias gcdnsi='gcloud dns managed-zones create' # gcdnsi: Create a new managed DNS zone.
91
- alias gcdnsk='gcloud dns dns-keys' # gcdnsk: List and manage DNSSEC keys for a zone.
92
- alias gcdnsl='gcloud dns record-sets list' # gcdnsl: List record sets in a managed zone.
93
- alias gcdnsr='gcloud dns record-sets transaction start' # gcdnsr: Start a transaction to add, update, or remove record sets.
94
- alias gcdnss='gcloud dns record-sets transaction execute' # gcdnss: Execute a transaction to add, update, or remove record sets.
95
- alias gcdnst='gcloud dns record-sets transaction abort' # gcdnst: Abort a transaction to add, update, or remove record sets.
96
-
97
- # Functions
98
- alias gcf='gcloud functions' # gcf: A convenience command group for all functions-related commands.
99
-
100
- # Cloud Build
101
-
102
- alias gcb='gcloud builds' # gcb: A convenience command group for all Cloud Build-related commands.
103
- alias gcbh='gcloud builds list' # gcbh: List all builds in a project.
104
- alias gcbb='gcloud builds submit' # gcbb: Submit a build to Cloud Build.
105
-
106
- # Cloud Run
107
-
108
- alias gcr='gcloud run' # gcr: A convenience command group for all Cloud Run-related commands.
109
- alias gcrd='gcloud run deploy' # gcrd: Deploy a container to Cloud Run.
110
- alias gcrs='gcloud run services' # gcrs: List, describe, and manage services on Cloud Run.
111
- alias gcru='gcloud run update' # gcru: Update an existing Cloud Run service.
112
- alias gcrf='gcloud run logs' # gcrf: Display logs for a Cloud Run service.
113
-
114
- # Cloud Storage
115
-
116
- alias gcs='gsutil' # gcs: A convenience command group for all Cloud Storage-related commands.
117
- alias gcsc='gsutil cp' # gcsc: Copy files and objects to/from Cloud Storage.
118
- alias gcscp='gsutil -m cp' # gcscp: Copy files and objects to/from Cloud Storage using parallel processing.
119
- alias gcsd='gsutil du' # gcsd: Display the total size of a bucket or object.
120
- alias gcsl='gsutil ls' # gcsl:List contents of a bucket or folder.
121
- alias gcspm='gsutil setmeta' # gcspm: Set metadata for objects in Cloud Storage.
122
-
123
- # BigQuery
124
-
125
- alias gcbq='bq' # gcbq: A convenience command group for all BigQuery-related commands.
126
- alias gcbql='bq ls' # gcbql: List all datasets in a project.
127
- alias gcbqs='bq show' # gcbqs: Show details about a specific dataset or table.
128
- alias gcbqd='bq rm' # gcbqd: Delete a dataset or table.
129
- alias gcbqc='bq query' # gcbqc: Run a BigQuery SQL query.
130
-
131
- # Cloud SQL
132
-
133
- alias gcsql='gcloud sql' # gcsql: A convenience command group for all Cloud SQL-related commands.
134
- alias gcsqlc='gcloud sql connect' # gcsqlc: Connect to a Cloud SQL instance.
135
- alias gcsqlc='gcloud sql instances create' # gcsqlc: Create a new Cloud SQL instance.
136
- alias gcsqlr='gcloud sql instances describe' # gcsqlr: Describe a Cloud SQL instance.
137
- alias gcsqlu='gcloud sql users set-password' # gcsqlu: Update the password for a Cloud SQL user.
138
-
139
- # Pub/Sub
140
-
141
- alias gcps='gcloud pubsub' # gcps: A convenience command group for all Pub/Sub-related commands.
142
- alias gcpsp='gcloud pubsub topics' # gcpsp: List, create, and manage Pub/Sub topics.
143
- alias gcpss='gcloud pubsub subscriptions' # gcpss: List, create, and manage Pub/Sub subscriptions.
144
- alias gcpsp='gcloud pubsub publish' # gcpsp: Publish a message to a Pub/Sub topic.
11
+ # πŸ…ΆπŸ…²πŸ…»πŸ…ΎπŸ†„πŸ…³ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ - Google Cloud aliases.
12
+ if command -v gcloud &>/dev/null; then
13
+ # Sections:
14
+ #
15
+ # 1.0 Google Cloud Aliases.
16
+ # 1.1 Aliases to get going with the gcloud command-line tool.
17
+ # 1.2 Aliases to make the Cloud SDK your own; personalize your
18
+ # configuration with properties.
19
+ # 1.3 Aliases to grant and revoke authorization to Cloud SDK.
20
+ # 1.4 Aliases to configuring Cloud Identity & Access Management
21
+ # (IAM) preferences and service accounts.
22
+ # 1.5 Aliases to manage project access policies.
23
+ # 1.6 Aliases to manage containerized applications on Kubernetes.
24
+ # 1.7 Aliases to create, run, and manage VMs on Google
25
+ # infrastructure.
26
+ # 1.8 Aliases to build highly scalable applications on a fully
27
+ # managed serverless platform.
28
+ # 1.9 Aliases to commands that might come in handy.
29
+ # 1.10 Additional Google Cloud Aliases.
30
+
31
+ ## ------------------------------------------------------------------
32
+ ## 1.0 Google Cloud Aliases
33
+ ## ------------------------------------------------------------------
34
+ ## ------------------------------------------------------------------
35
+ ## 1.1 Aliases to get going with the gcloud command-line tool.
36
+ ## ------------------------------------------------------------------
37
+
38
+ # Install specific components.
39
+ alias gcci='gcloud components install'
40
+
41
+ # Set a default Google Cloud project to work on.
42
+ alias gccsp='gcloud config set project'
43
+
44
+ # Update your Cloud SDK to the latest version.
45
+ alias gccu='gcloud components update'
46
+
47
+ # Initialize, authorize, and configure the gcloud tool.
48
+ alias gci='gcloud init'
49
+
50
+ # Display current gcloud tool environment details.
51
+ alias gcinf='gcloud info'
52
+
53
+ # Display version and installed components.
54
+ alias gcv='gcloud version'
55
+
56
+ ## ------------------------------------------------------------------
57
+ ## 1.2 Aliases to make the Cloud SDK your own; personalize your
58
+ ## configuration with properties.
59
+ ## ------------------------------------------------------------------
60
+
61
+ # Switch to an existing named configuration.
62
+ alias gccca='gcloud config configurations activate'
63
+
64
+ # Create a new named configuration.
65
+ alias gcccc='gcloud config configurations create'
66
+
67
+ # Display a list of all available configurations.
68
+ alias gcccl='gcloud config configurations list'
69
+
70
+ # Fetch value of a Cloud SDK property.
71
+ alias gccgv='gcloud config get-value'
72
+
73
+ # Display all the properties for the current configuration.
74
+ alias gccl='gcloud config list'
75
+
76
+ # Define a property (like compute/zone) for the current configuration.
77
+ alias gccs='gcloud config set'
78
+
79
+ ## ------------------------------------------------------------------
80
+ ## 1.3 Aliases to grant and revoke authorization to Cloud SDK
81
+ ## ------------------------------------------------------------------
82
+
83
+ # Like gcloud auth login but with service account credentials.
84
+ alias gcaasa='gcloud auth activate-service-account'
85
+
86
+ # Register the gcloud tool as a Docker credential helper.
87
+ alias gcacd='gcloud auth configure-docker'
88
+
89
+ # List all credentialed accounts.
90
+ alias gcal='gcloud auth list'
91
+
92
+ # Authorize Google Cloud access for the gcloud tool with Google user
93
+ # credentials and set current account as active.
94
+ alias gcal='gcloud auth login'
95
+
96
+ # Display the current account's access token.
97
+ alias gcapat='gcloud auth print-access-token'
98
+
99
+ # Remove access credentials for an account.
100
+ alias gcar='gcloud auth revoke'
101
+
102
+ ## ------------------------------------------------------------------
103
+ ## 1.4 Aliases to configuring Cloud Identity & Access Management
104
+ ## (IAM) preferences and service accounts.
105
+ ## ------------------------------------------------------------------
106
+
107
+ # List a service account's keys.
108
+ alias gciamk='gcloud iam service-accounts keys list'
109
+
110
+ # List IAM grantable roles for a resource.
111
+ alias gciaml='gcloud iam list-grantable-roles'
112
+
113
+ # Add an IAM policy binding to a service account.
114
+ alias gciamp='gcloud iam service-accounts add-iam-policy-binding'
115
+
116
+ # Create a custom role for a project or org.
117
+ alias gciamr='gcloud iam roles create'
118
+
119
+ # Replace existing IAM policy binding.
120
+ alias gciams='gcloud iam service-accounts set-iam-policy'
121
+
122
+ # Create a service account for a project.
123
+ alias gciamv='gcloud iam service-accounts create'
124
+
125
+ ## ------------------------------------------------------------------
126
+ ## 1.5 Aliases to manage project access policies
127
+ ## ------------------------------------------------------------------
128
+
129
+ # Add an IAM policy binding to a specified project.
130
+ alias gcpa='gcloud projects add-iam-policy-binding'
131
+
132
+ # Display metadata for a project (including its ID).
133
+ alias gcpd='gcloud projects describe'
134
+
135
+ ## -------------------------------------------------------------------
136
+ ## 1.6 Aliases to manage containerized applications on Kubernetes
137
+ ## -------------------------------------------------------------------
138
+
139
+ # Create a cluster to run GKE containers.
140
+ alias gcccc='gcloud container clusters create'
141
+
142
+ # Update kubeconfig to get kubectl to use a GKE cluster.
143
+ alias gcccg='gcloud container clusters get-credentials'
144
+
145
+ # List clusters for running GKE containers.
146
+ alias gcccl='gcloud container clusters list'
147
+
148
+ # List tag and digest metadata for a container image.
149
+ alias gccil='gcloud container images list-tags'
150
+
151
+ ## -------------------------------------------------------------------
152
+ ## 1.7 Aliases to create, run, and manage VMs on
153
+ ## Google infrastructure.
154
+ ## -------------------------------------------------------------------
155
+
156
+ # Copy files
157
+ alias gcpc='gcloud compute copy-files'
158
+
159
+ # Stop instance
160
+ alias gcpdown='gcloud compute instances stop'
161
+
162
+ # Create snapshot of persistent disks.
163
+ alias gcpds='gcloud compute disks snapshot'
164
+
165
+ # Display a VM instance's details.
166
+ alias gcpid='gcloud compute instances describe'
167
+
168
+ # List all VM instances in a project.
169
+ alias gcpil='gcloud compute instances list'
170
+
171
+ # Delete instance
172
+ alias gcprm='gcloud compute instances delete'
173
+
174
+ # Delete a snapshot.
175
+ alias gcpsk='gcloud compute snapshots delete'
176
+
177
+ # Connect to a VM instance by using SSH.
178
+ alias gcpssh='gcloud compute ssh'
179
+
180
+ # Start instance.
181
+ alias gcpup='gcloud compute instances start'
182
+
183
+ # List Compute Engine zones.
184
+ alias gcpzl='gcloud compute zones list'
185
+
186
+ ## -------------------------------------------------------------------
187
+ ## 1.8 Aliases to build highly scalable applications on a fully
188
+ ## managed serverless platform.
189
+ ## -------------------------------------------------------------------
190
+
191
+ # Open the current app in a web browser.
192
+ alias gcapb='gcloud app browse'
193
+
194
+ # Create an App Engine app within your current project.
195
+ alias gcapc='gcloud app create'
196
+
197
+ # Deploy your app's code and configuration to the App Engine server.
198
+ alias gcapd='gcloud app deploy'
199
+
200
+ # Display the latest App Engine app logs.
201
+ alias gcapl='gcloud app logs read'
202
+
203
+ # List all versions of all services deployed to the App Engine server.
204
+ alias gcapv='gcloud app versions list'
205
+
206
+ ## -------------------------------------------------------------------
207
+ ## 1.9 Aliases to commands that might come in handy
208
+ ## -------------------------------------------------------------------
209
+
210
+ # Decrypt ciphertext (to a plaintext file) using a Cloud Key
211
+ # Management Service (Cloud KMS) key.
212
+ alias gckmsd='gcloud kms decrypt'
213
+
214
+ # List your project's logs.
215
+ alias gclll='gcloud logging logs list'
216
+
217
+ # Display info about a Cloud SQL instance backup.
218
+ alias gcsqlb='gcloud sql backups describe'
219
+
220
+ # Export data from a Cloud SQL instance to a SQL file.
221
+ alias gcsqle='gcloud sql export sql'
222
+
223
+ ## -------------------------------------------------------------------
224
+ ## 1.10 Aliases to commands that might come in handy
225
+ ## -------------------------------------------------------------------
226
+
227
+ # Authenticate with Google Cloud.
228
+ alias gca='gcloud auth'
229
+
230
+ # Access to beta commands.
231
+ alias gcb='gcloud beta'
232
+
233
+ # Manage Google Cloud Build.
234
+ alias gcb='gcloud builds'
235
+
236
+ # Manage Compute Engine IP addresses.
237
+ alias gcca='gcloud compute addresses'
238
+
239
+ # Create a new virtual machine instance.
240
+ alias gccc='gcloud compute instances create'
241
+
242
+ # Connect to a virtual machine instance by using SSH.
243
+ alias gcco='gcloud compute ssh'
244
+
245
+ # Set default project to current directory name.
246
+ alias gcd='gcloud config set project $(gcloud projects list --format="value(projectId)" --filter="name:${PWD##\*/}")'
247
+
248
+ # Manage Google Cloud Datastore.
249
+ alias gcdb='gcloud datastore'
250
+
251
+ # Manage Google Cloud Dataproc.
252
+ alias gcdp='gcloud dataproc'
253
+
254
+ # Manage Google Cloud Endpoints.
255
+ alias gce='gcloud endpoints'
256
+
257
+ # Manage Google Cloud Eventarc.
258
+ alias gcem='gcloud eventarc'
259
+
260
+ # Manage Google Cloud Functions.
261
+ alias gcf='gcloud functions'
262
+
263
+ # Manage Google Cloud Compute Engine instances.
264
+ alias gci='gcloud compute instances'
265
+
266
+ # Manage Google Cloud Identity and Access Management.
267
+ alias gcic='gcloud iam'
268
+
269
+ # Manage Google Cloud IoT Core.
270
+ alias gcir='gcloud iot'
271
+
272
+ # List all configurations.
273
+ alias gck='gcloud config configurations list'
274
+
275
+ # Manage Google Cloud KMS.
276
+ alias gcki='gcloud kms'
277
+
278
+ # Manage Google Cloud Logging.
279
+ alias gcla='gcloud logging'
280
+
281
+ # Manage Google Cloud Monitoring.
282
+ alias gcma='gcloud monitoring'
283
+
284
+ # Manage Google Cloud Networks.
285
+ alias gcn='gcloud networks'
286
+
287
+ # Manage Google Cloud projects.
288
+ alias gcp='gcloud projects'
289
+
290
+ # Delete a Google Cloud project.
291
+ alias gcpd='gcloud projects delete'
292
+
293
+ # Display details for a Compute Engine IP address.
294
+ alias gcpha='gcloud compute addresses describe'
295
+
296
+ # Manage Google Cloud Pub/Sub.
297
+ alias gcps='gcloud pubsub'
298
+
299
+ # Delete a container image from Google Container Registry
300
+ alias gcr='gcloud container images delete'
301
+
302
+ # Manage Google Cloud resources.
303
+ alias gcrm='gcloud resource-manager'
304
+
305
+ # Manage Google Cloud Run.
306
+ alias gcro='gcloud run'
307
+
308
+ # Manage Google Cloud Kubernetes Engine clusters.
309
+ alias gcs='gcloud container clusters'
310
+
311
+ # Set the account for the current configuration.
312
+ alias gcsa='gcloud config set account'
313
+
314
+ # Manage Google Cloud Source Repositories.
315
+ alias gcsc='gcloud source'
316
+
317
+ # Open the Google Cloud Console for the current project.
318
+ alias gcso='gcloud organizations'
319
+
320
+ # Manage Google Cloud SQL.
321
+ alias gcsq='gcloud sql'
322
+
323
+ # Manage Google Cloud Storage.
324
+ alias gcss='gcloud storage'
325
+
326
+ # Enable or disable Google Cloud services.
327
+ alias gcst='gcloud services'
328
+
329
+ # Manage Google Cloud Tasks.
330
+ alias gct='gcloud tasks'
331
+
332
+ # Manage Google Cloud App Engine.
333
+ alias gcu='gcloud app'
145
334
 
146
335
  fi
@@ -0,0 +1,149 @@
1
+ <!-- markdownlint-disable MD033 MD041 -->
2
+
3
+ <img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
4
+ alt="dotfiles logo" width="261" align="right" />
5
+
6
+ <!-- markdownlint-enable MD033 MD041 -->
7
+
8
+ # Dotfiles (v0.2.466)
9
+
10
+ Simply designed to fit your shell life 🐚
11
+
12
+ ![Dotfiles banner][banner]
13
+
14
+ ## πŸ…ΆπŸ…ΈπŸ†ƒ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
15
+
16
+ This is a collection of handy Git aliases that simplify and speed up
17
+ common Git commands, making them shorter and more intuitive.
18
+
19
+ - `gc` Commit command to automatically "add" changes from all known
20
+ files
21
+ - `gca` Amend the tip of the current branch rather than creating a new
22
+ commit.
23
+ - `gcall` Commit all changes.
24
+ - `gcam` Amend the tip of the current branch, and edit the message.
25
+ - `gcane` Amend the tip of the current branch, and do not edit the
26
+ message.
27
+ - `gcint` Commit interactive.
28
+ - `gcm` Commit with a message.
29
+ - `gd` Show changes between the working tree and the index or a tree.
30
+ - `gdch` Show only names and status of changed files.
31
+ - `gdh` Show all changes of tracked files which are present in working
32
+ directory and staging area.
33
+ - `gdstaged` Show changes to files in the "staged" area.
34
+ - `gdcached` Shows the changes between the index and the HEAD (which is
35
+ the last commit on this branch).
36
+ - `gdstat` Generate a diffstat.
37
+ - `glc` Show log of changes, most recent first.
38
+ - `gld` Show the log of the recent day.
39
+ - `gldc` Show the date of the latest commit, in strict ISO 8601 format.
40
+ - `gldl` Show log with dates in our local timezone.
41
+ - `glf` Show log of new commits after you fetched, with stats, excluding
42
+ merges.
43
+ - `glfd` Show the date of the earliest commit, in strict ISO 8601
44
+ format.
45
+ - `glfh` Visualization of branch topology.
46
+ - `glg` Show log as a graph.
47
+ - `glh` Show the log of the recent hour.
48
+ - `gll` Show log in our preferred format for our key performance
49
+ indicators.
50
+ - `glll` Show log in our preferred format for our key performance
51
+ indicators, with long items.
52
+ - `glm` Show the log of the recent month.
53
+ - `glmy` Show the log for my own commits by my own user email.
54
+ - `glw` Show the log of the recent week.
55
+ - `gly` Show the log of the recent year.
56
+ - `gclout` Clean and discard changes and untracked files in working
57
+ tree.
58
+ - `gco` Switch branches or restore working tree files.
59
+ - `gcb` Create a new branch named <new_branch> and start it at
60
+ <start_point>.
61
+ - `gcode` Delete all local branches that have been merged into the local
62
+ main branch.
63
+ - `gcom` Ensure local is like the main branch.
64
+ - `gpb` Publish the current branch by pushing it to the remote "origin",
65
+ and setting the current branch to track the upstream branch.
66
+ - `gpo` Push local changes to the online repository.
67
+ - `gpt` Push local tags.
68
+ - `gpoll` Push each of your local git branches to the remote repository
69
+ - `gpull` Fetch from and integrate with another repository or a local
70
+ branch.
71
+ - `gpullm` Pull changes from the locally stored branch origin/master
72
+ and merge that to the local checked-out branch.
73
+ - `gpullo` Do a pull for just one branch.
74
+ - `gpush` Update remote refs along with associated objects.
75
+ - `gpusho` Do a push for just one branch.
76
+ - `gpushr` For each remote branch, push it.
77
+ - `gunpub` Unpublish the current branch by deleting the remote version
78
+ of the current branch.
79
+ - `gpcb` Push current branch
80
+ - `gr` Manage set of tracked repositories.
81
+ - `gra` Add a remote named `name` for the repository at `url`.
82
+ - `grall` Push all branches to all remotes.
83
+ - `grallo` Git remote all remotes except origin.
84
+ - `grao` Add a new remote 'origin' if it doesn't exist.
85
+ - `grbk` Rollback to stage.
86
+ - `grcl` Deletes all stale remote-tracking branches under `name`.
87
+ - `grf` Show GIT Remote Origin for each immediate subfolder.
88
+ - `grfall` Fetch all git remotes for a repo.
89
+ - `grp` Push all remotes.
90
+ - `grprint` Print the url for the current repo.
91
+ - `grs` Gives some information about the remote `name`.
92
+ - `grso` Display where the origin resides.
93
+ - `gru` Fetch updates for a named set of remotes in the repository as
94
+ defined by remotes.
95
+ - `grv` Shows URLs of remote repositories when listing your current
96
+ remote connections.
97
+ - `grev` Undo the changes from some existing commits
98
+ - `grevnc` Revert without autocommit; useful when you're reverting
99
+ more than one commits' effect to your index in a row.
100
+ - `gsm` Enables foreign repositories to be embedded within a dedicated
101
+ subdirectory of the source tree.
102
+ - `gsmi` Initialize the submodules recorded in the index
103
+ - `gsma` Add the given repository as a submodule at the given path to
104
+ the changeset to be committed next to the current project: the current
105
+ project is termed the "superproject".
106
+ - `gsms` Synchronizes submodules' remote URL configuration setting to
107
+ the value specified in .gitmodules.
108
+ - `gsmu` Update the registered submodules to match what the superproject
109
+ expects by cloning missing submodules, fetching missing commits in
110
+ submodules and updating the working tree of the submodules.
111
+ - `gsmui` Submodule update with initialize
112
+ - `gsmuir` Submodule update with initialize and recursive; this is
113
+ useful to bring a submodule fully up to date.
114
+ - `gst` Show the working tree status.
115
+ - `gsta` Stash the changes.
116
+ - `gstrmu` Remove untracked files in a git repository.
117
+ - `gsts` Status with short format instead of full details.
118
+ - `gstsb` Status with short format and showing branch and tracking info.
119
+ - `gt` See all tags.
120
+ - `gtg` Create, list, delete or verify a tag object signed with GPG.
121
+ - `gtl` Last tag in the current branch.
122
+ - `gshow` Show various types of objects
123
+ - `gshf` Find the nearest parent branch of the current git branch.
124
+ - `gshls` Show list of files changed by commit.
125
+ - `gshnp` Given any git object, try to show it briefly.
126
+ - `gshwho` Show who contributed, in descending order by number of
127
+ commits.
128
+ - `grescl` Reset commit clean.
129
+ - `gresh` Reset commit hard.
130
+ - `gresp` Reset pristine.
131
+ - `gress` Reset commit.
132
+ - `gresu` Reset to upstream.
133
+ - `gtp` Get the top level directory name.
134
+ - `grpa` Get the current branch name.
135
+ - `gub` Get the upstream branch name.
136
+ - `grm` Remove files from the working tree and from the index.
137
+ - `grmc` Unstage and remove paths only from the index.
138
+ - `grmd` Remove files which have been deleted.
139
+ - `grmd2` Remove files which have been deleted.
140
+ - `grmds` Remove .DS_Store from the repository.
141
+ - `grmx` Remove for all deleted files, including those with space/quote
142
+ unprintable characters in their filename/path.
143
+ - `gblau`Prints per-line contribution per author for a GIT repository.
144
+ - `gconfdiff` Better git diff, word delimited and colorized.
145
+ - `gconfl` List all the settings.
146
+ - `gconfr` Output remote origin from within a local repository.
147
+ - `undopush` Undo the last push.
148
+
149
+ [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg