@gkalpak/aliases 0.13.4 → 0.13.5
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/README.md +16 -17
- package/bin/config/cfgbash.js +1 -1
- package/bin/config/cfgbash.wsl.js +1 -1
- package/bin/config/cfggit.js +14 -3
- package/bin/config/cfggit.win32.js +14 -3
- package/bin/config/cfggit.wsl.js +14 -3
- package/bin/config/cfggpg.js +1 -1
- package/bin/config/cfgssh.js +1 -1
- package/bin/config/cfgvim.js +1 -1
- package/bin/config/cfgwsl.wsl.js +2 -2
- package/bin/misc/alv.js +1 -1
- package/lib/constants.js +13 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,33 +36,30 @@ My global aliases packaged as a node module for easy installation/update across
|
|
|
36
36
|
|
|
37
37
|
See [cli-utils] for more details.
|
|
38
38
|
|
|
39
|
-
NOTE
|
|
40
|
-
determining their index.
|
|
39
|
+
**NOTE:**
|
|
40
|
+
All arguments starting with `--gkcu-` will be ignored when substituting input arguments or determining their index.
|
|
41
41
|
|
|
42
42
|
<sub>(*): This is still an experimental feature and not guaranteed to work as expected.</sub>
|
|
43
43
|
|
|
44
44
|
Run `halp` for a list of all available aliases.
|
|
45
|
-
Run `halp <category>` for a list of available aliases for a particular category (e.g. `git`, `node`,
|
|
46
|
-
`misc`).
|
|
45
|
+
Run `halp <category>` for a list of available aliases for a particular category (e.g. `git`, `node`, `misc`).
|
|
47
46
|
|
|
48
47
|
|
|
49
48
|
## Global Dependencies
|
|
50
49
|
|
|
51
|
-
Obviously, aliases refer to other global commands/scripts.
|
|
52
|
-
|
|
53
|
-
inspecting the associated command (e.g. via `halp`).
|
|
50
|
+
Obviously, aliases refer to other global commands/scripts.
|
|
51
|
+
In order for an alias to work, the corresponding command must be globally available.
|
|
52
|
+
You can see each alias' global dependency by inspecting the associated command (e.g. via `halp`).
|
|
54
53
|
|
|
55
54
|
Here is the list of all global dependencies with associated min. version (older versions are not guaranteed work):
|
|
56
55
|
|
|
57
56
|
- `git`: [git] >=2.40
|
|
58
57
|
- `docker`: [docker] >= 17
|
|
59
|
-
- `grep`: [grep] >=3 (could come through a bash emulation environment on Windows, such as [git for
|
|
60
|
-
Windows][git-win]' `Git BASH`)
|
|
58
|
+
- `grep`: [grep] >=3 (could come through a bash emulation environment on Windows, such as [git for Windows][git-win]' `Git BASH`)
|
|
61
59
|
- `http-server`: [http-server] >=0.12.0 (installed globally via [npm] or [yarn])
|
|
62
60
|
- `kdiff3`: [kdiff3] >=0.9
|
|
63
61
|
- `light-server`: [light-server] >=2.5.0 (installed globally via [npm] or [yarn])
|
|
64
|
-
- `ls`: [ls] >=8 (could come through a bash emulation environment on Windows, such as [git for
|
|
65
|
-
Windows][git-win]' `Git BASH`)
|
|
62
|
+
- `ls`: [ls] >=8 (could come through a bash emulation environment on Windows, such as [git for Windows][git-win]' `Git BASH`)
|
|
66
63
|
- `ngm-diff-wh`: `ngm-diff-wh` >=0.0.4 (part of the [ng-maintain] suite)
|
|
67
64
|
- `ngm-pr-merge`: `ngm-pr-merge` >=0.0.4 (part of the [ng-maintain] suite)
|
|
68
65
|
- `node`: [Node.js][node] >=16
|
|
@@ -70,6 +67,10 @@ Here is the list of all global dependencies with associated min. version (older
|
|
|
70
67
|
- `nvm`: [nvm] >=0.30 (on *nix) / [nvm-windows][nvm-win] >=1 (on Windows)
|
|
71
68
|
- `yarn`: [yarn] >=0.24
|
|
72
69
|
|
|
70
|
+
> [!Tip]
|
|
71
|
+
> The git commands are generally generic and should work with the default git configuration, but are only tested using the configuration provided by the `cfggit` alias.
|
|
72
|
+
|
|
73
|
+
|
|
73
74
|
## Testing
|
|
74
75
|
|
|
75
76
|
The following test-types/modes are available:
|
|
@@ -81,16 +82,14 @@ The following test-types/modes are available:
|
|
|
81
82
|
_Run all the unit tests once. These tests are quick and suitable to be run on every change._
|
|
82
83
|
|
|
83
84
|
- **E2E tests:** `npm run test-e2e`
|
|
84
|
-
_Run all the end-to-end tests once. These test may hit actual API endpoints or perform expensive
|
|
85
|
-
I/O operations and are considerably slower than unit tests._
|
|
85
|
+
_Run all the end-to-end tests once. These test may hit actual API endpoints or perform expensive I/O operations and are considerably slower than unit tests._
|
|
86
86
|
|
|
87
87
|
- **All tests:** `npm test` / `npm run test`
|
|
88
|
-
_Run all of the above tests (code-linting, unit tests, e2e tests). This command is automatically
|
|
89
|
-
run before every release (via `npm run release`)._
|
|
88
|
+
_Run all of the above tests (code-linting, unit tests, e2e tests). This command is automatically run before every release (via `npm run release`)._
|
|
90
89
|
|
|
91
90
|
- **"Dev" mode:** `npm run dev`
|
|
92
|
-
_Watch all files and rerun linting and the unit tests whenever something changes. For performance
|
|
93
|
-
|
|
91
|
+
_Watch all files and rerun linting and the unit tests whenever something changes. For performance reasons, e2e tests are omitted._
|
|
92
|
+
|
|
94
93
|
|
|
95
94
|
## TODO
|
|
96
95
|
|
package/bin/config/cfgbash.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {stripIndentation} from '../../lib/utils.js';
|
|
3
3
|
/* eslint-disable max-len */
|
|
4
4
|
console.log(stripIndentation(`
|
|
5
|
-
### [Generated by: @gkalpak/aliases v0.13.
|
|
5
|
+
### [Generated by: @gkalpak/aliases v0.13.5]
|
|
6
6
|
### Copy the following into '~/.bashrc':
|
|
7
7
|
|
|
8
8
|
# Set up prompt.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {stripIndentation} from '../../lib/utils.js';
|
|
3
3
|
/* eslint-disable max-len */
|
|
4
4
|
console.log(stripIndentation(`
|
|
5
|
-
### [Generated by: @gkalpak/aliases v0.13.
|
|
5
|
+
### [Generated by: @gkalpak/aliases v0.13.5]
|
|
6
6
|
### Copy the following into '~/.bashrc':
|
|
7
7
|
|
|
8
8
|
# Set up prompt.
|
package/bin/config/cfggit.js
CHANGED
|
@@ -1,20 +1,31 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {stripIndentation} from '../../lib/utils.js';
|
|
3
3
|
console.log(stripIndentation(`
|
|
4
|
-
### [Generated by: @gkalpak/aliases v0.13.
|
|
4
|
+
### [Generated by: @gkalpak/aliases v0.13.5]
|
|
5
5
|
### Run the following commands:
|
|
6
6
|
|
|
7
|
-
git config --global commit.gpgSign true
|
|
7
|
+
git config --global commit.gpgSign "true"
|
|
8
|
+
git config --global commit.verbose "true"
|
|
8
9
|
git config --global core.editor "vim"
|
|
9
10
|
git config --global credential.helper "manager"
|
|
11
|
+
git config --global diff.algorithm "histogram"
|
|
12
|
+
git config --global diff.colorMoved "plain"
|
|
13
|
+
git config --global diff.mnemonicPrefix "true"
|
|
14
|
+
git config --global fetch.all "true"
|
|
15
|
+
git config --global fetch.prune "true"
|
|
16
|
+
git config --global fetch.pruneTags "true"
|
|
10
17
|
git config --global init.defaultBranch "main"
|
|
18
|
+
git config --global merge.conflictStyle "zdiff3"
|
|
11
19
|
git config --global merge.tool "kdiff3"
|
|
12
20
|
git config --global mergetool.kdiff3.path "/path/to/kdiff3"
|
|
13
21
|
git config --global mergetool.kdiff3.trustExitCode "false"
|
|
14
22
|
git config --global push.default "upstream"
|
|
15
23
|
git config --global rebase.autosquash "true"
|
|
16
24
|
git config --global rebase.autostash "true"
|
|
17
|
-
git config --global
|
|
25
|
+
git config --global rerere.autoUpdate "true"
|
|
26
|
+
git config --global rerere.enabled "true"
|
|
27
|
+
git config --global tag.gpgSign "true"
|
|
28
|
+
git config --global tag.sort "version:refname"
|
|
18
29
|
git config --global user.email "kalpakas.g@gmail.com"
|
|
19
30
|
git config --global user.name "George Kalpakas"
|
|
20
31
|
git config --global user.signingKey "0FF21FC44ECE9F07"
|
|
@@ -1,20 +1,31 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {stripIndentation} from '../../lib/utils.js';
|
|
3
3
|
console.log(stripIndentation(`
|
|
4
|
-
### [Generated by: @gkalpak/aliases v0.13.
|
|
4
|
+
### [Generated by: @gkalpak/aliases v0.13.5]
|
|
5
5
|
### Run the following commands:
|
|
6
6
|
|
|
7
|
-
git config --global commit.gpgSign true
|
|
7
|
+
git config --global commit.gpgSign "true"
|
|
8
|
+
git config --global commit.verbose "true"
|
|
8
9
|
git config --global core.editor "vim"
|
|
9
10
|
git config --global credential.helper "manager"
|
|
11
|
+
git config --global diff.algorithm "histogram"
|
|
12
|
+
git config --global diff.colorMoved "plain"
|
|
13
|
+
git config --global diff.mnemonicPrefix "true"
|
|
14
|
+
git config --global fetch.all "true"
|
|
15
|
+
git config --global fetch.prune "true"
|
|
16
|
+
git config --global fetch.pruneTags "true"
|
|
10
17
|
git config --global init.defaultBranch "main"
|
|
18
|
+
git config --global merge.conflictStyle "zdiff3"
|
|
11
19
|
git config --global merge.tool "kdiff3"
|
|
12
20
|
git config --global mergetool.kdiff3.path "C:/Program Files/KDiff3/bin/kdiff3.exe"
|
|
13
21
|
git config --global mergetool.kdiff3.trustExitCode "false"
|
|
14
22
|
git config --global push.default "upstream"
|
|
15
23
|
git config --global rebase.autosquash "true"
|
|
16
24
|
git config --global rebase.autostash "true"
|
|
17
|
-
git config --global
|
|
25
|
+
git config --global rerere.autoUpdate "true"
|
|
26
|
+
git config --global rerere.enabled "true"
|
|
27
|
+
git config --global tag.gpgSign "true"
|
|
28
|
+
git config --global tag.sort "version:refname"
|
|
18
29
|
git config --global user.email "kalpakas.g@gmail.com"
|
|
19
30
|
git config --global user.name "George Kalpakas"
|
|
20
31
|
git config --global user.signingKey "0FF21FC44ECE9F07"
|
package/bin/config/cfggit.wsl.js
CHANGED
|
@@ -1,20 +1,31 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {stripIndentation} from '../../lib/utils.js';
|
|
3
3
|
console.log(stripIndentation(`
|
|
4
|
-
### [Generated by: @gkalpak/aliases v0.13.
|
|
4
|
+
### [Generated by: @gkalpak/aliases v0.13.5]
|
|
5
5
|
### Run the following commands:
|
|
6
6
|
|
|
7
|
-
git config --global commit.gpgSign true
|
|
7
|
+
git config --global commit.gpgSign "true"
|
|
8
|
+
git config --global commit.verbose "true"
|
|
8
9
|
git config --global core.editor "vim"
|
|
9
10
|
git config --global credential.helper "/mnt/c/Program\\ Files/Git/mingw64/bin/git-credential-manager.exe"
|
|
11
|
+
git config --global diff.algorithm "histogram"
|
|
12
|
+
git config --global diff.colorMoved "plain"
|
|
13
|
+
git config --global diff.mnemonicPrefix "true"
|
|
14
|
+
git config --global fetch.all "true"
|
|
15
|
+
git config --global fetch.prune "true"
|
|
16
|
+
git config --global fetch.pruneTags "true"
|
|
10
17
|
git config --global init.defaultBranch "main"
|
|
18
|
+
git config --global merge.conflictStyle "zdiff3"
|
|
11
19
|
git config --global merge.tool "kdiff3"
|
|
12
20
|
git config --global mergetool.kdiff3.path "/mnt/c/Program Files/KDiff3/bin/kdiff3.exe"
|
|
13
21
|
git config --global mergetool.kdiff3.trustExitCode "false"
|
|
14
22
|
git config --global push.default "upstream"
|
|
15
23
|
git config --global rebase.autosquash "true"
|
|
16
24
|
git config --global rebase.autostash "true"
|
|
17
|
-
git config --global
|
|
25
|
+
git config --global rerere.autoUpdate "true"
|
|
26
|
+
git config --global rerere.enabled "true"
|
|
27
|
+
git config --global tag.gpgSign "true"
|
|
28
|
+
git config --global tag.sort "version:refname"
|
|
18
29
|
git config --global user.email "kalpakas.g@gmail.com"
|
|
19
30
|
git config --global user.name "George Kalpakas"
|
|
20
31
|
git config --global user.signingKey "0FF21FC44ECE9F07"
|
package/bin/config/cfggpg.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {stripIndentation} from '../../lib/utils.js';
|
|
3
3
|
console.log(stripIndentation(`
|
|
4
|
-
### [Generated by: @gkalpak/aliases v0.13.
|
|
4
|
+
### [Generated by: @gkalpak/aliases v0.13.5]
|
|
5
5
|
### Copy the following into '~/.gnupg/gpg-agent.conf':
|
|
6
6
|
|
|
7
7
|
default-cache-ttl 86400
|
package/bin/config/cfgssh.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {stripIndentation} from '../../lib/utils.js';
|
|
3
3
|
console.log(stripIndentation(`
|
|
4
|
-
### [Generated by: @gkalpak/aliases v0.13.
|
|
4
|
+
### [Generated by: @gkalpak/aliases v0.13.5]
|
|
5
5
|
### Copy the following into '~/.ssh/config':
|
|
6
6
|
|
|
7
7
|
IdentityFile ~/.ssh/id-rsa-gkalpak.ppk
|
package/bin/config/cfgvim.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
import {readFileSync} from 'node:fs';
|
|
3
3
|
import {fileURLToPath} from 'node:url';
|
|
4
4
|
const __dirname = fileURLToPath(new URL('.', import.meta.url));
|
|
5
|
-
console.log('""" [Generated by: @gkalpak/aliases v0.13.
|
|
5
|
+
console.log('""" [Generated by: @gkalpak/aliases v0.13.5]');
|
|
6
6
|
console.log('""" Copy the following into \'~/.vimrc\':\n');
|
|
7
7
|
console.log(readFileSync(`${__dirname}/../../lib/assets/vimrc.txt`, 'utf8').trim() + '\n');
|
package/bin/config/cfgwsl.wsl.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {stripIndentation} from '../../lib/utils.js';
|
|
3
3
|
console.log(stripIndentation(`
|
|
4
|
-
### [Generated by: @gkalpak/aliases v0.13.
|
|
4
|
+
### [Generated by: @gkalpak/aliases v0.13.5]
|
|
5
5
|
### Copy the following into a root-owned, 600-mode '/etc/resolv.conf' file:
|
|
6
6
|
|
|
7
7
|
# Cloudflare
|
|
@@ -14,7 +14,7 @@ console.log(stripIndentation(`
|
|
|
14
14
|
|
|
15
15
|
-----
|
|
16
16
|
|
|
17
|
-
### [Generated by: @gkalpak/aliases v0.13.
|
|
17
|
+
### [Generated by: @gkalpak/aliases v0.13.5]
|
|
18
18
|
### Copy the following into a root-owned, 600-mode '/etc/wsl.conf' file:
|
|
19
19
|
|
|
20
20
|
[network]
|
package/bin/misc/alv.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
console.log('@gkalpak/aliases v0.13.
|
|
2
|
+
console.log('@gkalpak/aliases v0.13.5');
|
package/lib/constants.js
CHANGED
|
@@ -103,17 +103,28 @@ const CFGGIT_SPEC = (credHelper, kdiff3Path) => new AliasSpec(
|
|
|
103
103
|
### [Generated by: ${VERSION_STAMP}]
|
|
104
104
|
### Run the following commands:
|
|
105
105
|
|
|
106
|
-
git config --global commit.gpgSign true
|
|
106
|
+
git config --global commit.gpgSign "true"
|
|
107
|
+
git config --global commit.verbose "true"
|
|
107
108
|
git config --global core.editor "vim"
|
|
108
109
|
git config --global credential.helper "${credHelper}"
|
|
110
|
+
git config --global diff.algorithm "histogram"
|
|
111
|
+
git config --global diff.colorMoved "plain"
|
|
112
|
+
git config --global diff.mnemonicPrefix "true"
|
|
113
|
+
git config --global fetch.all "true"
|
|
114
|
+
git config --global fetch.prune "true"
|
|
115
|
+
git config --global fetch.pruneTags "true"
|
|
109
116
|
git config --global init.defaultBranch "main"
|
|
117
|
+
git config --global merge.conflictStyle "zdiff3"
|
|
110
118
|
git config --global merge.tool "kdiff3"
|
|
111
119
|
git config --global mergetool.kdiff3.path "${kdiff3Path}"
|
|
112
120
|
git config --global mergetool.kdiff3.trustExitCode "false"
|
|
113
121
|
git config --global push.default "upstream"
|
|
114
122
|
git config --global rebase.autosquash "true"
|
|
115
123
|
git config --global rebase.autostash "true"
|
|
116
|
-
git config --global
|
|
124
|
+
git config --global rerere.autoUpdate "true"
|
|
125
|
+
git config --global rerere.enabled "true"
|
|
126
|
+
git config --global tag.gpgSign "true"
|
|
127
|
+
git config --global tag.sort "version:refname"
|
|
117
128
|
git config --global user.email "kalpakas.g@gmail.com"
|
|
118
129
|
git config --global user.name "George Kalpakas"
|
|
119
130
|
git config --global user.signingKey "0FF21FC44ECE9F07"
|