@gkalpak/aliases 0.12.4 → 0.13.0

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.
@@ -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.12.4]
5
+ ### [Generated by: @gkalpak/aliases v0.13.0]
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.12.4]
5
+ ### [Generated by: @gkalpak/aliases v0.13.0]
6
6
  ### Copy the following into '~/.bashrc':
7
7
 
8
8
  # Set up prompt.
@@ -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.12.4]
4
+ ### [Generated by: @gkalpak/aliases v0.13.0]
5
5
  ### Run the following commands:
6
6
 
7
7
  git config --global commit.gpgSign true
@@ -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.12.4]
4
+ ### [Generated by: @gkalpak/aliases v0.13.0]
5
5
  ### Run the following commands:
6
6
 
7
7
  git config --global commit.gpgSign true
@@ -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.12.4]
4
+ ### [Generated by: @gkalpak/aliases v0.13.0]
5
5
  ### Run the following commands:
6
6
 
7
7
  git config --global commit.gpgSign true
@@ -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.12.4]
4
+ ### [Generated by: @gkalpak/aliases v0.13.0]
5
5
  ### Copy the following into '~/.gnupg/gpg-agent.conf':
6
6
 
7
7
  default-cache-ttl 86400
@@ -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.12.4]
4
+ ### [Generated by: @gkalpak/aliases v0.13.0]
5
5
  ### Copy the following into '~/.ssh/config':
6
6
 
7
7
  IdentityFile ~/.ssh/id-rsa-gkalpak.ppk
@@ -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.12.4]');
5
+ console.log('""" [Generated by: @gkalpak/aliases v0.13.0]');
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.12.4]
4
+ ### [Generated by: @gkalpak/aliases v0.13.0]
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.12.4]
17
+ ### [Generated by: @gkalpak/aliases v0.13.0]
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.12.4');
2
+ console.log('@gkalpak/aliases v0.13.0');
@@ -47,8 +47,7 @@ async function _aBuildsDir(config) {
47
47
  return buildsDirPath;
48
48
  }
49
49
 
50
- // Log on a new line to ensure nothing is already written on the line (e.g. escape sequences).
51
- console.log(`\n${buildsDirPath}`);
50
+ console.log(buildsDirPath);
52
51
  }
53
52
 
54
53
  function _fsStat(filePath) {
@@ -46,8 +46,7 @@ async function _gPickBranch(config) {
46
46
  return branch;
47
47
  }
48
48
 
49
- // Log on a new line to ensure nothing is already written on the line (e.g. escape sequences).
50
- console.log(`\n${branch}`);
49
+ console.log(branch);
51
50
  }
52
51
 
53
52
  function gPickBranch(config) {
@@ -46,8 +46,7 @@ async function _gPickCommit(config) {
46
46
  return commit;
47
47
  }
48
48
 
49
- // Log on a new line to ensure nothing is already written on the line (e.g. escape sequences).
50
- console.log(`\n${commit}`);
49
+ console.log(commit);
51
50
  }
52
51
 
53
52
  function gPickCommit(config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gkalpak/aliases",
3
- "version": "0.12.4",
3
+ "version": "0.13.0",
4
4
  "description": "My global aliases.",
5
5
  "keywords": [
6
6
  "Utility"
@@ -193,7 +193,7 @@
193
193
  }
194
194
  },
195
195
  "dependencies": {
196
- "@gkalpak/cli-utils": "^0.1.10",
196
+ "@gkalpak/cli-utils": "^0.2.0",
197
197
  "chalk": "^5.3.0",
198
198
  "inquirer": "^9.3.4",
199
199
  "is-wsl": "^3.1.0"