@gkalpak/aliases 0.9.2 → 0.9.3

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
@@ -54,7 +54,7 @@ inspecting the associated command (e.g. via `halp`).
54
54
 
55
55
  Here is the list of all global dependencies with associated min. version (older versions are not guaranteed work):
56
56
 
57
- - `git`: [git] >=1.8
57
+ - `git`: [git] >=2.35
58
58
  - `docker`: [docker] >= 17
59
59
  - `grep`: [grep] >=3 (could come through a bash emulation environment on Windows, such as [git for
60
60
  Windows][git-win]' `Git BASH`)
@@ -3,7 +3,7 @@
3
3
  const utils = require('../../lib/utils');
4
4
  /* eslint-disable max-len */
5
5
  console.log(utils.stripIndentation(`
6
- ### [Generated by: @gkalpak/aliases v0.9.2]
6
+ ### [Generated by: @gkalpak/aliases v0.9.3]
7
7
  ### Copy the following into '~/.bashrc':
8
8
 
9
9
  # Set up prompt.
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+ const utils = require('../../lib/utils');
4
+ /* eslint-disable max-len */
5
+ console.log(utils.stripIndentation(`
6
+ ### [Generated by: @gkalpak/aliases v0.9.3]
7
+ ### Copy the following into '~/.bashrc':
8
+
9
+ # Set up prompt.
10
+ PS1='\\[\\033[90m\\][\\d \\t]\\[\\033[00m\\]\\n\${debian_chroot:+($debian_chroot)}\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;34m\\]\\w\\[\\033[00m\\]$ ';
11
+
12
+ # Improve tab completion.
13
+ bind "set completion-ignore-case on";
14
+ bind "set menu-complete-display-prefix on";
15
+ bind "set show-all-if-ambiguous on";
16
+ bind "TAB:menu-complete";
17
+
18
+ # Fix required for GPG signing in WSL.
19
+ export GPG_TTY="$(tty)";
20
+
21
+ `));
22
+ /* eslint-enable max-len */
@@ -2,9 +2,10 @@
2
2
  'use strict';
3
3
  const utils = require('../../lib/utils');
4
4
  console.log(utils.stripIndentation(`
5
- ### [Generated by: @gkalpak/aliases v0.9.2]
5
+ ### [Generated by: @gkalpak/aliases v0.9.3]
6
6
  ### Run the following commands:
7
7
 
8
+ git config --global commit.gpgSign true
8
9
  git config --global core.editor "vim"
9
10
  git config --global credential.helper "store"
10
11
  git config --global merge.tool "kdiff3"
@@ -13,6 +14,8 @@ console.log(utils.stripIndentation(`
13
14
  git config --global push.default "upstream"
14
15
  git config --global rebase.autosquash "true"
15
16
  git config --global rebase.autostash "true"
17
+ git config --global tag.gpgSign true
16
18
  git config --global user.email "kalpakas.g@gmail.com"
17
19
  git config --global user.name "George Kalpakas"
20
+ git config --global user.signingKey "0FF21FC44ECE9F07"
18
21
  `));
@@ -2,9 +2,10 @@
2
2
  'use strict';
3
3
  const utils = require('../../lib/utils');
4
4
  console.log(utils.stripIndentation(`
5
- ### [Generated by: @gkalpak/aliases v0.9.2]
5
+ ### [Generated by: @gkalpak/aliases v0.9.3]
6
6
  ### Run the following commands:
7
7
 
8
+ git config --global commit.gpgSign true
8
9
  git config --global core.editor "vim"
9
10
  git config --global credential.helper "manager"
10
11
  git config --global merge.tool "kdiff3"
@@ -13,6 +14,8 @@ console.log(utils.stripIndentation(`
13
14
  git config --global push.default "upstream"
14
15
  git config --global rebase.autosquash "true"
15
16
  git config --global rebase.autostash "true"
17
+ git config --global tag.gpgSign true
16
18
  git config --global user.email "kalpakas.g@gmail.com"
17
19
  git config --global user.name "George Kalpakas"
20
+ git config --global user.signingKey "0FF21FC44ECE9F07"
18
21
  `));
@@ -2,9 +2,10 @@
2
2
  'use strict';
3
3
  const utils = require('../../lib/utils');
4
4
  console.log(utils.stripIndentation(`
5
- ### [Generated by: @gkalpak/aliases v0.9.2]
5
+ ### [Generated by: @gkalpak/aliases v0.9.3]
6
6
  ### Run the following commands:
7
7
 
8
+ git config --global commit.gpgSign true
8
9
  git config --global core.editor "vim"
9
10
  git config --global credential.helper "/mnt/c/Program\\ Files/Git/mingw64/libexec/git-core/git-credential-manager.exe"
10
11
  git config --global merge.tool "kdiff3"
@@ -13,6 +14,8 @@ console.log(utils.stripIndentation(`
13
14
  git config --global push.default "upstream"
14
15
  git config --global rebase.autosquash "true"
15
16
  git config --global rebase.autostash "true"
17
+ git config --global tag.gpgSign true
16
18
  git config --global user.email "kalpakas.g@gmail.com"
17
19
  git config --global user.name "George Kalpakas"
20
+ git config --global user.signingKey "0FF21FC44ECE9F07"
18
21
  `));
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
- console.log('""" [Generated by: @gkalpak/aliases v0.9.2]');
3
+ console.log('""" [Generated by: @gkalpak/aliases v0.9.3]');
4
4
  console.log('""" Copy the following into \'~/.vimrc\':\n');
5
5
  console.log(require('fs').readFileSync(`${__dirname}/../../lib/assets/vimrc.txt`, 'utf8').trim() + '\n');
package/bin/misc/alv.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
- console.log('@gkalpak/aliases v0.9.2');
3
+ console.log('@gkalpak/aliases v0.9.3');
package/lib/constants.js CHANGED
@@ -56,6 +56,35 @@ const DEF_CODE = AliasSpecDefault.DEF_CODE = (cmd, cfg = {}) => utils.stripInden
56
56
  }
57
57
  `);
58
58
 
59
+ const CFGBASH_SPEC = isWsl => new AliasSpec(
60
+ /* eslint-disable max-len */
61
+ utils.stripIndentation(`
62
+ #!/usr/bin/env node
63
+ 'use strict';
64
+ const utils = require('../../lib/utils');
65
+ /* eslint-disable max-len */
66
+ console.log(utils.stripIndentation(\`
67
+ ### [Generated by: ${VERSION_STAMP}]
68
+ ### Copy the following into '~/.bashrc':
69
+
70
+ # Set up prompt.
71
+ PS1='\\\\[\\\\033[90m\\\\][\\\\d \\\\t]\\\\[\\\\033[00m\\\\]\\\\n\\\${debian_chroot:+($debian_chroot)}\\\\[\\\\033[01;32m\\\\]\\\\u@\\\\h\\\\[\\\\033[00m\\\\]:\\\\[\\\\033[01;34m\\\\]\\\\w\\\\[\\\\033[00m\\\\]$ ';
72
+
73
+ # Improve tab completion.
74
+ bind "set completion-ignore-case on";
75
+ bind "set menu-complete-display-prefix on";
76
+ bind "set show-all-if-ambiguous on";
77
+ bind "TAB:menu-complete";${!isWsl ? '' : `
78
+
79
+ # Fix required for GPG signing in WSL.
80
+ export GPG_TTY="$(tty)";`}
81
+
82
+ \`));
83
+ /* eslint-enable max-len */
84
+ `),
85
+ /* eslint-enable max-len */
86
+ 'Show configuration instructions for `bash`.');
87
+
59
88
  const CFGGIT_SPEC_WITH_CRED_HELPER = credHelper => new AliasSpec(
60
89
  utils.stripIndentation(`
61
90
  #!/usr/bin/env node
@@ -65,6 +94,7 @@ const CFGGIT_SPEC_WITH_CRED_HELPER = credHelper => new AliasSpec(
65
94
  ### [Generated by: ${VERSION_STAMP}]
66
95
  ### Run the following commands:
67
96
 
97
+ git config --global commit.gpgSign true
68
98
  git config --global core.editor "vim"
69
99
  git config --global credential.helper "${credHelper}"
70
100
  git config --global merge.tool "kdiff3"
@@ -73,8 +103,10 @@ const CFGGIT_SPEC_WITH_CRED_HELPER = credHelper => new AliasSpec(
73
103
  git config --global push.default "upstream"
74
104
  git config --global rebase.autosquash "true"
75
105
  git config --global rebase.autostash "true"
106
+ git config --global tag.gpgSign true
76
107
  git config --global user.email "kalpakas.g@gmail.com"
77
108
  git config --global user.name "George Kalpakas"
109
+ git config --global user.signingKey "0FF21FC44ECE9F07"
78
110
  \`));
79
111
  `),
80
112
  'Show configuration instructions for `git`.');
@@ -429,31 +461,10 @@ const ALIASES = {
429
461
  // Env config
430
462
  config: {
431
463
  // BASH
432
- cfgbash: new Alias(new AliasSpec(
433
- /* eslint-disable max-len */
434
- utils.stripIndentation(`
435
- #!/usr/bin/env node
436
- 'use strict';
437
- const utils = require('../../lib/utils');
438
- /* eslint-disable max-len */
439
- console.log(utils.stripIndentation(\`
440
- ### [Generated by: ${VERSION_STAMP}]
441
- ### Copy the following into '~/.bashrc':
442
-
443
- # Set up prompt.
444
- PS1='\\\\[\\\\033[90m\\\\][\\\\d \\\\t]\\\\[\\\\033[00m\\\\]\\\\n\\\${debian_chroot:+($debian_chroot)}\\\\[\\\\033[01;32m\\\\]\\\\u@\\\\h\\\\[\\\\033[00m\\\\]:\\\\[\\\\033[01;34m\\\\]\\\\w\\\\[\\\\033[00m\\\\]$ ';
445
-
446
- # Improve tab completion.
447
- bind "set completion-ignore-case on";
448
- bind "set menu-complete-display-prefix on";
449
- bind "set show-all-if-ambiguous on";
450
- bind "TAB:menu-complete";
451
-
452
- \`));
453
- /* eslint-enable max-len */
454
- `),
455
- /* eslint-enable max-len */
456
- 'Show configuration instructions for `bash`.')),
464
+ cfgbash: new Alias({
465
+ default: CFGBASH_SPEC(false),
466
+ wsl: CFGBASH_SPEC(true),
467
+ }),
457
468
 
458
469
 
459
470
  // GIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gkalpak/aliases",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "My global aliases.",
5
5
  "keywords": [
6
6
  "Utility"
@@ -189,13 +189,13 @@
189
189
  "dependencies": {
190
190
  "@gkalpak/cli-utils": "^0.1.10",
191
191
  "chalk": "^4.1.2",
192
- "inquirer": "^8.2.1",
192
+ "inquirer": "^8.2.4",
193
193
  "is-wsl": "^2.2.0"
194
194
  },
195
195
  "devDependencies": {
196
- "eslint": "^8.11.0",
196
+ "eslint": "^8.23.0",
197
197
  "eslint-plugin-jasmine": "^4.1.3",
198
- "jasmine": "^4.0.2",
198
+ "jasmine": "^4.3.0",
199
199
  "npm-run-all": "^4.1.5",
200
200
  "shelljs": "^0.8.5",
201
201
  "strip-ansi": "^6.0.1",