@gkalpak/aliases 0.13.0 → 0.13.1
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 +2 -2
- package/bin/git/gbcd.js +1 -1
- package/bin/git/gcod.js +1 -1
- package/bin/git/gprod.js +1 -1
- package/bin/git/gprud.js +1 -1
- package/bin/git/grbd.js +1 -1
- package/bin/git/gsync.js +1 -1
- package/bin/misc/alv.js +1 -1
- package/lib/constants.js +8 -8
- package/package.json +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.13.
|
|
5
|
+
### [Generated by: @gkalpak/aliases v0.13.1]
|
|
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.1]
|
|
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.13.
|
|
4
|
+
### [Generated by: @gkalpak/aliases v0.13.1]
|
|
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.13.
|
|
4
|
+
### [Generated by: @gkalpak/aliases v0.13.1]
|
|
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.13.
|
|
4
|
+
### [Generated by: @gkalpak/aliases v0.13.1]
|
|
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.13.
|
|
4
|
+
### [Generated by: @gkalpak/aliases v0.13.1]
|
|
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.1]
|
|
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.1]');
|
|
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.1]
|
|
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.1]
|
|
18
18
|
### Copy the following into a root-owned, 600-mode '/etc/wsl.conf' file:
|
|
19
19
|
|
|
20
20
|
[network]
|
package/bin/git/gbcd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
3
|
import {isMain, onError} from '../../lib/utils.js';
|
|
4
4
|
// eslint-disable-next-line max-len
|
|
5
|
-
const cmd = 'git checkout ${0:::gdefb
|
|
5
|
+
const cmd = 'git checkout ${0:::gdefb} -b $1 && git config branch.$1.remote origin && git config branch.$1.merge refs/heads/$1';
|
|
6
6
|
export default cmd;
|
|
7
7
|
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
package/bin/git/gcod.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
3
|
import {isMain, onError} from '../../lib/utils.js';
|
|
4
4
|
// eslint-disable-next-line max-len
|
|
5
|
-
const cmd = 'git checkout ${0:::gdefb
|
|
5
|
+
const cmd = 'git checkout ${0:::gdefb} $*';
|
|
6
6
|
export default cmd;
|
|
7
7
|
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
package/bin/git/gprod.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
3
|
import {isMain, onError} from '../../lib/utils.js';
|
|
4
4
|
// eslint-disable-next-line max-len
|
|
5
|
-
const cmd = 'git pull --rebase origin ${0:::gdefb
|
|
5
|
+
const cmd = 'git pull --rebase origin ${0:::gdefb} $*';
|
|
6
6
|
export default cmd;
|
|
7
7
|
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
package/bin/git/gprud.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
3
|
import {isMain, onError} from '../../lib/utils.js';
|
|
4
4
|
// eslint-disable-next-line max-len
|
|
5
|
-
const cmd = 'git pull --rebase upstream ${0:::gdefb
|
|
5
|
+
const cmd = 'git pull --rebase upstream ${0:::gdefb} $*';
|
|
6
6
|
export default cmd;
|
|
7
7
|
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
package/bin/git/grbd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
3
|
import {isMain, onError} from '../../lib/utils.js';
|
|
4
4
|
// eslint-disable-next-line max-len
|
|
5
|
-
const cmd = 'git rebase --ignore-date ${0:::gdefb
|
|
5
|
+
const cmd = 'git rebase --ignore-date ${0:::gdefb} $*';
|
|
6
6
|
export default cmd;
|
|
7
7
|
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
package/bin/git/gsync.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
3
|
import {isMain, onError} from '../../lib/utils.js';
|
|
4
4
|
// eslint-disable-next-line max-len
|
|
5
|
-
const cmd = 'git checkout ${1:::gdefb
|
|
5
|
+
const cmd = 'git checkout ${1:::gdefb} && git pull upstream ${1:::gdefb} && git push origin ${1:::gdefb}';
|
|
6
6
|
export default cmd;
|
|
7
7
|
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
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.1');
|
package/lib/constants.js
CHANGED
|
@@ -275,7 +275,7 @@ const ALIASES = {
|
|
|
275
275
|
|
|
276
276
|
// CHECKOUT
|
|
277
277
|
gco: new AliasDefault('git checkout ${*:::__g-pick-branch --gkcu-returnOutput=1}'),
|
|
278
|
-
gcod: new AliasDefault('git checkout ${0:::gdefb
|
|
278
|
+
gcod: new AliasDefault('git checkout ${0:::gdefb} $*'),
|
|
279
279
|
gcopr: new AliasDefault('git fetch upstream pull/$1/head && git checkout FETCH_HEAD'),
|
|
280
280
|
gcoghpr: SCRIPT_BACKED_ALIAS('gcoghpr', 'Check out a GitHub pull request as a local branch.'),
|
|
281
281
|
'gcoghpr-cleanup': new AliasDefault(
|
|
@@ -311,29 +311,29 @@ const ALIASES = {
|
|
|
311
311
|
// BRANCH
|
|
312
312
|
gb: new AliasDefault('git branch $*'),
|
|
313
313
|
gbc: new AliasDefault(GIT_CREATE_BRANCH_CMD('${2:HEAD}')),
|
|
314
|
-
gbcd: new AliasDefault(GIT_CREATE_BRANCH_CMD('${0:::gdefb
|
|
314
|
+
gbcd: new AliasDefault(GIT_CREATE_BRANCH_CMD('${0:::gdefb}')),
|
|
315
315
|
gbco: new AliasDefault(`git fetch origin $1 && ${GIT_CREATE_BRANCH_CMD('origin/$1')}`),
|
|
316
316
|
gbd: new AliasDefault('git branch --delete --force ${*:::__g-pick-branch --gkcu-returnOutput=1}'),
|
|
317
317
|
|
|
318
318
|
// PULL(-REBASE)
|
|
319
319
|
gpr: new AliasDefault('git pull --rebase $*'),
|
|
320
320
|
gpro: new AliasDefault('git pull --rebase origin ${*:::git rev-parse --abbrev-ref HEAD}'),
|
|
321
|
-
gprod: new AliasDefault('git pull --rebase origin ${0:::gdefb
|
|
321
|
+
gprod: new AliasDefault('git pull --rebase origin ${0:::gdefb} $*'),
|
|
322
322
|
gpru: new AliasDefault('git pull --rebase upstream ${*:::git rev-parse --abbrev-ref HEAD}'),
|
|
323
|
-
gprud: new AliasDefault('git pull --rebase upstream ${0:::gdefb
|
|
323
|
+
gprud: new AliasDefault('git pull --rebase upstream ${0:::gdefb} $*'),
|
|
324
324
|
|
|
325
325
|
// SYNC DEFAULT BRANCH
|
|
326
326
|
gsync: new AliasDefault(
|
|
327
|
-
'git checkout ${1:::gdefb
|
|
328
|
-
'git pull upstream ${1:::gdefb
|
|
329
|
-
'git push origin ${1:::gdefb
|
|
327
|
+
'git checkout ${1:::gdefb} && ' +
|
|
328
|
+
'git pull upstream ${1:::gdefb} && ' +
|
|
329
|
+
'git push origin ${1:::gdefb}'),
|
|
330
330
|
|
|
331
331
|
|
|
332
332
|
// REBASE
|
|
333
333
|
grb: new AliasDefault('git rebase ${*:::__g-pick-branch --gkcu-returnOutput=1}'),
|
|
334
334
|
grba: new AliasDefault('git rebase --abort'),
|
|
335
335
|
grbc: new AliasDefault('git rebase --continue'),
|
|
336
|
-
grbd: new AliasDefault('git rebase --ignore-date ${0:::gdefb
|
|
336
|
+
grbd: new AliasDefault('git rebase --ignore-date ${0:::gdefb} $*'),
|
|
337
337
|
grbi: new AliasDefault('git rebase --interactive HEAD~$1'),
|
|
338
338
|
grbia: new AliasDefault('git rebase --autosquash --interactive HEAD~$1'),
|
|
339
339
|
grbin: new AliasDefault('git rebase --no-autosquash --interactive HEAD~$1'),
|