@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.
- package/LICENSE +20 -17
- package/README.md +210 -382
- package/dist/Makefile +2 -2
- package/dist/bin/constants.d.ts +2 -2
- package/dist/bin/constants.d.ts.map +1 -1
- package/dist/bin/constants.js +1 -1
- package/dist/bin/constants.js.map +1 -1
- package/dist/filesizes.txt +170 -144
- package/dist/lib/README.md +6 -1
- package/dist/lib/aliases/README.md +51 -0
- package/dist/lib/aliases/archives/README.md +39 -67
- package/dist/lib/aliases/archives/archives.aliases.sh +128 -60
- package/dist/lib/aliases/cd/README.md +26 -9
- package/dist/lib/aliases/cd/cd.aliases.sh +1 -4
- package/dist/lib/aliases/chmod/README.md +48 -13
- package/dist/lib/aliases/chmod/chmod.aliases.sh +1 -1
- package/dist/lib/aliases/clear/README.md +33 -38
- package/dist/lib/aliases/clear/clear.aliases.sh +35 -33
- package/dist/lib/aliases/configuration/README.md +26 -37
- package/dist/lib/aliases/configuration/configuration.aliases.sh +40 -36
- package/dist/lib/aliases/default/README.md +26 -52
- package/dist/lib/aliases/default/default.aliases.sh +105 -44
- package/dist/lib/aliases/dig/README.md +23 -40
- package/dist/lib/aliases/dig/dig.aliases.sh +26 -29
- package/dist/lib/aliases/disk-usage/README.md +32 -0
- package/dist/lib/aliases/disk-usage/du.aliases.sh +84 -0
- package/dist/lib/aliases/editor/README.md +35 -33
- package/dist/lib/aliases/editor/editor.aliases.sh +13 -39
- package/dist/lib/aliases/find/README.md +42 -29
- package/dist/lib/aliases/find/find.aliases.sh +52 -26
- package/dist/lib/aliases/gcloud/README.md +59 -148
- package/dist/lib/aliases/gcloud/gcloud.aliases.sh +327 -138
- package/dist/lib/aliases/git/README.md +149 -0
- package/dist/lib/aliases/git/git.aliases.sh +535 -131
- package/dist/lib/aliases/gnu/README.md +85 -0
- package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +143 -109
- package/dist/lib/aliases/heroku/README.md +426 -0
- package/dist/lib/aliases/heroku/heroku.aliases.sh +1047 -288
- package/dist/lib/aliases/interactive/README.md +43 -0
- package/dist/lib/aliases/interactive/interactive.aliases.sh +48 -9
- package/dist/lib/aliases/jekyll/README.md +37 -0
- package/dist/lib/aliases/jekyll/jekyll.aliases.sh +49 -10
- package/dist/lib/aliases/list/README.md +38 -0
- package/dist/lib/aliases/list/list.aliases.sh +81 -30
- package/dist/lib/aliases/macOS/README.md +38 -0
- package/dist/lib/aliases/macOS/macos.aliases.sh +65 -0
- package/dist/lib/aliases/make/README.md +28 -0
- package/dist/lib/aliases/make/make.aliases.sh +30 -10
- package/dist/lib/aliases/mkdir/README.md +26 -0
- package/dist/lib/aliases/mkdir/mkdir.aliases.sh +24 -8
- package/dist/lib/aliases/npm/README.md +37 -0
- package/dist/lib/aliases/npm/npm.aliases.sh +54 -17
- package/dist/lib/aliases/permission/README.md +43 -0
- package/dist/lib/aliases/permission/permission.aliases.sh +73 -0
- package/dist/lib/aliases/pnpm/README.md +49 -0
- package/dist/lib/aliases/pnpm/pnpm.aliases.sh +70 -36
- package/dist/lib/aliases/ps/README.md +25 -0
- package/dist/lib/aliases/ps/ps.aliases.sh +14 -6
- package/dist/lib/aliases/rsync/README.md +21 -0
- package/dist/lib/aliases/rsync/rsync.aliases.sh +10 -4
- package/dist/lib/aliases/rust/README.md +57 -0
- package/dist/lib/aliases/rust/rust.aliases.sh +116 -39
- package/dist/lib/aliases/subversion/README.md +62 -0
- package/dist/lib/aliases/subversion/subversion.aliases.sh +4 -3
- package/dist/lib/aliases/sudo/README.md +23 -0
- package/dist/lib/aliases/sudo/sudo.aliases.sh +15 -6
- package/dist/lib/aliases/tmux/README.md +27 -0
- package/dist/lib/aliases/tmux/tmux.aliases.sh +29 -10
- package/dist/lib/aliases/update/README.md +34 -0
- package/dist/lib/aliases/update/update.aliases.sh +57 -26
- package/dist/lib/aliases/uuid/README.md +20 -0
- package/dist/lib/aliases/uuid/uuid.aliases.sh +13 -4
- package/dist/lib/aliases/wget/README.md +23 -0
- package/dist/lib/aliases/wget/wget.aliases.sh +15 -6
- package/dist/lib/aliases.sh +4 -3
- package/dist/lib/configurations/README.md +13 -2
- package/dist/lib/configurations/bash/bashrc +4 -3
- package/dist/lib/configurations/curl/curlrc +2 -2
- package/dist/lib/configurations/default/color.sh +3 -2
- package/dist/lib/configurations/default/constants.sh +4 -3
- package/dist/lib/configurations/default/editor.sh +3 -2
- package/dist/lib/configurations/default/prompt.sh +3 -2
- package/dist/lib/configurations/input/inputrc +2 -2
- package/dist/lib/configurations/nano/nanorc +2 -2
- package/dist/lib/configurations/profile/profile +2 -2
- package/dist/lib/configurations/tmux/default +2 -2
- package/dist/lib/configurations/tmux/display +6 -2
- package/dist/lib/configurations/tmux/linux +2 -2
- package/dist/lib/configurations/tmux/navigation +2 -2
- package/dist/lib/configurations/tmux/panes +2 -2
- package/dist/lib/configurations/tmux/theme +3 -3
- package/dist/lib/configurations/tmux/tmux +2 -2
- package/dist/lib/configurations/tmux/vi +2 -2
- package/dist/lib/configurations/vim/vimrc +1 -1
- package/dist/lib/configurations/wget/wgetrc +2 -2
- package/dist/lib/configurations/zsh/zshrc +2 -2
- package/dist/lib/configurations.sh +4 -3
- package/dist/lib/functions/README.md +73 -2
- package/dist/lib/functions/cdls.sh +3 -2
- package/dist/lib/functions/curlheader.sh +3 -2
- package/dist/lib/functions/curlstatus.sh +17 -0
- package/dist/lib/functions/curltime.sh +4 -3
- package/dist/lib/functions/encode64.sh +3 -2
- package/dist/lib/functions/environment.sh +3 -2
- package/dist/lib/functions/extract.sh +3 -2
- package/dist/lib/functions/filehead.sh +1 -1
- package/dist/lib/functions/freespace.sh +21 -0
- package/dist/lib/functions/genpwd.sh +33 -7
- package/dist/lib/functions/goto.sh +3 -2
- package/dist/lib/functions/hidehiddenfiles.sh +3 -2
- package/dist/lib/functions/hostinfo.sh +3 -2
- package/dist/lib/functions/hstats.sh +3 -2
- package/dist/lib/functions/httpdebug.sh +3 -2
- package/dist/lib/functions/keygen.sh +20 -13
- package/dist/lib/functions/last.sh +3 -2
- package/dist/lib/functions/logout.sh +3 -2
- package/dist/lib/functions/lowercase.sh +3 -2
- package/dist/lib/functions/matrix.sh +15 -14
- package/dist/lib/functions/mount_read_only.sh +3 -2
- package/dist/lib/functions/myproc.sh +4 -3
- package/dist/lib/functions/prependpath.sh +3 -2
- package/dist/lib/functions/ql.sh +3 -2
- package/dist/lib/functions/rd.sh +3 -2
- package/dist/lib/functions/remove_disk.sh +3 -2
- package/dist/lib/functions/ren.sh +3 -2
- package/dist/lib/functions/showhiddenfiles.sh +3 -2
- package/dist/lib/functions/size.sh +3 -2
- package/dist/lib/functions/stopwatch.sh +4 -3
- package/dist/lib/functions/uppercase.sh +3 -2
- package/dist/lib/functions/view-source.sh +3 -2
- package/dist/lib/functions/vscode.sh +3 -2
- package/dist/lib/functions/whoisport.sh +3 -2
- package/dist/lib/functions/zipf.sh +3 -2
- package/dist/lib/functions.sh +4 -3
- package/dist/lib/history.sh +4 -4
- package/dist/lib/paths/ant/ant.paths.sh +3 -2
- package/dist/lib/paths/default/default.paths.sh +3 -2
- package/dist/lib/paths/homebrew/homebrew.paths.sh +3 -2
- package/dist/lib/paths/java/java.paths.sh +3 -2
- package/dist/lib/paths/maven/maven.paths.sh +3 -2
- package/dist/lib/paths/node/node.paths.sh +3 -2
- package/dist/lib/paths/nvm/nvm.paths.sh +3 -2
- package/dist/lib/paths/pnpm/pnpm.paths.sh +3 -2
- package/dist/lib/paths/python/python.paths.sh +3 -2
- package/dist/lib/paths/ruby/ruby.paths.sh +3 -2
- package/dist/lib/paths/tmux/tmux.paths.sh +3 -2
- package/dist/lib/paths.sh +4 -3
- package/dist/scripts/backup.sh +3 -2
- package/dist/scripts/banner.sh +3 -2
- package/dist/scripts/build.sh +3 -2
- package/dist/scripts/clean.sh +3 -2
- package/dist/scripts/compile.sh +3 -2
- package/dist/scripts/copy.sh +3 -2
- package/dist/scripts/dotfiles.sh +3 -2
- package/dist/scripts/download.sh +3 -2
- package/dist/scripts/help.sh +3 -2
- package/dist/scripts/ssh.sh +3 -2
- package/dist/scripts/unpack.sh +3 -2
- package/package.json +7 -7
- package/dist/lib/aliases/du/README.md +0 -35
- package/dist/lib/aliases/du/du.aliases.sh +0 -37
- package/dist/lib/functions/changediskpwd.tmp +0 -19
- package/dist/lib/functions/code.tmp +0 -18
- package/dist/lib/functions/countdown.tmp +0 -34
- package/dist/lib/functions/headers.tmp +0 -4
- package/dist/lib/functions/history-all.tmp +0 -8
- package/dist/lib/functions/macos.sh +0 -47
- package/dist/lib/functions/mcd.tmp +0 -19
- package/dist/lib/functions/print.tmp +0 -14
- package/dist/lib/functions/rm.tmp +0 -14
- package/dist/lib/functions/rps.tmp +0 -104
- package/dist/lib/functions/trash.tmp +0 -14
- package/dist/lib/functions/tree.tmp +0 -14
- package/dist/lib/functions/uuidgen.tmp +0 -28
|
@@ -1,146 +1,335 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
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.
|
|
8
|
+
# Version: 0.2.466
|
|
8
9
|
# Website: https://dotfiles.io
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
#
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
#
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
#
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
alias
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
alias
|
|
45
|
-
|
|
46
|
-
#
|
|
47
|
-
alias
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
alias
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
alias
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
alias
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
alias
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
alias
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
alias
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
alias
|
|
84
|
-
|
|
85
|
-
#
|
|
86
|
-
alias
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
alias
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
alias
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
#
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
alias
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
alias
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
alias
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
alias
|
|
130
|
-
|
|
131
|
-
#
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
alias
|
|
143
|
-
|
|
144
|
-
|
|
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
|