@gkalpak/aliases 0.13.4 → 0.13.6

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 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: All arguments starting with `--gkcu-` will be ignored when substituting input arguments or
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. In order for an alias to work, the
52
- corresponding command must be globally available. You can see each alias' global dependency by
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
- reasons, e2e tests are omitted._
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
 
@@ -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.4]
5
+ ### [Generated by: @gkalpak/aliases v0.13.6]
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.4]
5
+ ### [Generated by: @gkalpak/aliases v0.13.6]
6
6
  ### Copy the following into '~/.bashrc':
7
7
 
8
8
  # Set up prompt.
@@ -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]
4
+ ### [Generated by: @gkalpak/aliases v0.13.6]
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
- git config --global rebase.autosquash "true"
16
- git config --global rebase.autostash "true"
17
- git config --global tag.gpgSign true
23
+ git config --global rebase.autoSquash "true"
24
+ git config --global rebase.autoStash "true"
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]
4
+ ### [Generated by: @gkalpak/aliases v0.13.6]
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
- git config --global rebase.autosquash "true"
16
- git config --global rebase.autostash "true"
17
- git config --global tag.gpgSign true
23
+ git config --global rebase.autoSquash "true"
24
+ git config --global rebase.autoStash "true"
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]
4
+ ### [Generated by: @gkalpak/aliases v0.13.6]
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
- git config --global rebase.autosquash "true"
16
- git config --global rebase.autostash "true"
17
- git config --global tag.gpgSign true
23
+ git config --global rebase.autoSquash "true"
24
+ git config --global rebase.autoStash "true"
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,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]
4
+ ### [Generated by: @gkalpak/aliases v0.13.6]
5
5
  ### Copy the following into '~/.gnupg/gpg-agent.conf':
6
6
 
7
7
  default-cache-ttl 86400
@@ -1,21 +1,21 @@
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]
4
+ ### [Generated by: @gkalpak/aliases v0.13.6]
5
5
  ### Copy the following into '~/.ssh/config':
6
6
 
7
- IdentityFile ~/.ssh/id-rsa-gkalpak.ppk
7
+ IdentityFile ~/.ssh/id-rsa-gkalpak.priv
8
8
  AddKeysToAgent yes
9
9
 
10
10
  Host nrg-masternode-1
11
11
  HostName 173.212.225.90
12
12
  Port 2210
13
13
  User nrgstaker
14
- IdentityFile ~/.ssh/id-rsa-gkalpak.ppk
14
+ IdentityFile ~/.ssh/id-rsa-gkalpak.priv
15
15
 
16
16
  Host nrg-masternode-2
17
17
  HostName 62.171.165.219
18
18
  Port 2210
19
19
  User nrgstaker
20
- IdentityFile ~/.ssh/id-rsa-gkalpak.ppk
20
+ IdentityFile ~/.ssh/id-rsa-gkalpak.priv
21
21
  `));
@@ -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.4]');
5
+ console.log('""" [Generated by: @gkalpak/aliases v0.13.6]');
6
6
  console.log('""" Copy the following into \'~/.vimrc\':\n');
7
7
  console.log(readFileSync(`${__dirname}/../../lib/assets/vimrc.txt`, 'utf8').trim() + '\n');
@@ -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]
4
+ ### [Generated by: @gkalpak/aliases v0.13.6]
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.4]
17
+ ### [Generated by: @gkalpak/aliases v0.13.6]
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.4');
2
+ console.log('@gkalpak/aliases v0.13.6');
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
- git config --global rebase.autosquash "true"
115
- git config --global rebase.autostash "true"
116
- git config --global tag.gpgSign true
122
+ git config --global rebase.autoSquash "true"
123
+ git config --global rebase.autoStash "true"
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"
@@ -553,7 +564,7 @@ const ALIASES = {
553
564
 
554
565
 
555
566
  // SSH
556
- cfgssh: new Alias(CFGSSH_SPEC('~/.ssh/id-rsa-gkalpak.ppk')),
567
+ cfgssh: new Alias(CFGSSH_SPEC('~/.ssh/id-rsa-gkalpak.priv')),
557
568
 
558
569
 
559
570
  // VIM
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gkalpak/aliases",
3
- "version": "0.13.4",
3
+ "version": "0.13.6",
4
4
  "description": "My global aliases.",
5
5
  "keywords": [
6
6
  "Utility"