@gkalpak/aliases 0.10.7 → 0.10.8
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/bin/config/cfgbash.js +1 -1
- package/bin/config/cfgbash.wsl.js +1 -1
- package/bin/config/cfggit.js +1 -1
- package/bin/config/cfggit.win32.js +1 -1
- package/bin/config/cfggit.wsl.js +1 -1
- 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 +15 -2
- package/bin/misc/alv.js +1 -1
- package/lib/constants.js +13 -0
- package/package.json +5 -5
- package/scripts/build.js +1 -1
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.10.
|
|
5
|
+
### [Generated by: @gkalpak/aliases v0.10.8]
|
|
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.10.
|
|
5
|
+
### [Generated by: @gkalpak/aliases v0.10.8]
|
|
6
6
|
### Copy the following into '~/.bashrc':
|
|
7
7
|
|
|
8
8
|
# Set up prompt.
|
package/bin/config/cfggit.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.10.
|
|
4
|
+
### [Generated by: @gkalpak/aliases v0.10.8]
|
|
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.10.
|
|
4
|
+
### [Generated by: @gkalpak/aliases v0.10.8]
|
|
5
5
|
### Run the following commands:
|
|
6
6
|
|
|
7
7
|
git config --global commit.gpgSign true
|
package/bin/config/cfggit.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.10.
|
|
4
|
+
### [Generated by: @gkalpak/aliases v0.10.8]
|
|
5
5
|
### Run the following commands:
|
|
6
6
|
|
|
7
7
|
git config --global commit.gpgSign true
|
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.10.
|
|
4
|
+
### [Generated by: @gkalpak/aliases v0.10.8]
|
|
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.10.
|
|
4
|
+
### [Generated by: @gkalpak/aliases v0.10.8]
|
|
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.10.
|
|
5
|
+
console.log('""" [Generated by: @gkalpak/aliases v0.10.8]');
|
|
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.10.
|
|
4
|
+
### [Generated by: @gkalpak/aliases v0.10.8]
|
|
5
5
|
### Copy the following into a root-owned, 600-mode '/etc/resolv.conf' file:
|
|
6
6
|
|
|
7
7
|
# Cloudflare
|
|
@@ -14,9 +14,22 @@ console.log(stripIndentation(`
|
|
|
14
14
|
|
|
15
15
|
-----
|
|
16
16
|
|
|
17
|
-
### [Generated by: @gkalpak/aliases v0.10.
|
|
17
|
+
### [Generated by: @gkalpak/aliases v0.10.8]
|
|
18
18
|
### Copy the following into a root-owned, 600-mode '/etc/wsl.conf' file:
|
|
19
19
|
|
|
20
20
|
[network]
|
|
21
21
|
generateResolvConf = false
|
|
22
|
+
|
|
23
|
+
-----
|
|
24
|
+
|
|
25
|
+
### Run the following commands in PowerShell (with admin rights) to disable
|
|
26
|
+
### "Large Send Offload" and fix network slowness in WSL.
|
|
27
|
+
### See also: https://github.com/microsoft/WSL/issues/8171#issuecomment-1572881486
|
|
28
|
+
|
|
29
|
+
Get-NetAdapterAdvancedProperty -Name "vEthernet (WSL)" | Format-Table -AutoSize
|
|
30
|
+
Set-NetAdapterAdvancedProperty -Name "vEthernet (WSL)" -DisplayName \\
|
|
31
|
+
"Large Send Offload Version 2 (IPv4)" -DisplayValue Disabled
|
|
32
|
+
Set-NetAdapterAdvancedProperty -Name "vEthernet (WSL)" -DisplayName \\
|
|
33
|
+
"Large Send Offload Version 2 (IPv6)" -DisplayValue Disabled
|
|
34
|
+
Get-NetAdapterAdvancedProperty -Name "vEthernet (WSL)" | Format-Table -AutoSize
|
|
22
35
|
`));
|
package/bin/misc/alv.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
console.log('@gkalpak/aliases v0.10.
|
|
2
|
+
console.log('@gkalpak/aliases v0.10.8');
|
package/lib/constants.js
CHANGED
|
@@ -574,6 +574,19 @@ const ALIASES = {
|
|
|
574
574
|
|
|
575
575
|
[network]
|
|
576
576
|
generateResolvConf = false
|
|
577
|
+
|
|
578
|
+
-----
|
|
579
|
+
|
|
580
|
+
### Run the following commands in PowerShell (with admin rights) to disable
|
|
581
|
+
### "Large Send Offload" and fix network slowness in WSL.
|
|
582
|
+
### See also: https://github.com/microsoft/WSL/issues/8171#issuecomment-1572881486
|
|
583
|
+
|
|
584
|
+
Get-NetAdapterAdvancedProperty -Name "vEthernet (WSL)" | Format-Table -AutoSize
|
|
585
|
+
Set-NetAdapterAdvancedProperty -Name "vEthernet (WSL)" -DisplayName \\\\
|
|
586
|
+
"Large Send Offload Version 2 (IPv4)" -DisplayValue Disabled
|
|
587
|
+
Set-NetAdapterAdvancedProperty -Name "vEthernet (WSL)" -DisplayName \\\\
|
|
588
|
+
"Large Send Offload Version 2 (IPv6)" -DisplayValue Disabled
|
|
589
|
+
Get-NetAdapterAdvancedProperty -Name "vEthernet (WSL)" | Format-Table -AutoSize
|
|
577
590
|
\`));
|
|
578
591
|
`),
|
|
579
592
|
'Show configuration instructions for setting up WSL.'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gkalpak/aliases",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.8",
|
|
4
4
|
"description": "My global aliases.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Utility"
|
|
@@ -194,13 +194,13 @@
|
|
|
194
194
|
"dependencies": {
|
|
195
195
|
"@gkalpak/cli-utils": "^0.1.10",
|
|
196
196
|
"chalk": "^5.3.0",
|
|
197
|
-
"inquirer": "^9.2.
|
|
198
|
-
"is-wsl": "^3.
|
|
197
|
+
"inquirer": "^9.2.18",
|
|
198
|
+
"is-wsl": "^3.1.0"
|
|
199
199
|
},
|
|
200
200
|
"devDependencies": {
|
|
201
|
-
"eslint": "^8.
|
|
201
|
+
"eslint": "^8.57.0",
|
|
202
|
+
"eslint-plugin-import": "^2.29.1",
|
|
202
203
|
"eslint-plugin-jasmine": "^4.1.3",
|
|
203
|
-
"eslint-plugin-ordered-imports": "^0.6.0",
|
|
204
204
|
"jasmine": "^5.1.0",
|
|
205
205
|
"npm-run-all": "^4.1.5",
|
|
206
206
|
"shelljs": "^0.8.5",
|