@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.
@@ -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.0]
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.0]
5
+ ### [Generated by: @gkalpak/aliases v0.13.1]
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.13.0]
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.0]
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.0]
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.0]
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
@@ -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.0]
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
@@ -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.0]');
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');
@@ -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.0]
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.0]
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 --gkcu-returnOutput} -b $1 && git config branch.$1.remote origin && git config branch.$1.merge refs/heads/$1';
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 --gkcu-returnOutput} $*';
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 --gkcu-returnOutput} $*';
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 --gkcu-returnOutput} $*';
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 --gkcu-returnOutput} $*';
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 --gkcu-returnOutput} && git pull upstream ${1:::gdefb --gkcu-returnOutput} && git push origin ${1:::gdefb --gkcu-returnOutput}';
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.0');
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 --gkcu-returnOutput} $*'),
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 --gkcu-returnOutput}')),
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 --gkcu-returnOutput} $*'),
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 --gkcu-returnOutput} $*'),
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 --gkcu-returnOutput} && ' +
328
- 'git pull upstream ${1:::gdefb --gkcu-returnOutput} && ' +
329
- 'git push origin ${1:::gdefb --gkcu-returnOutput}'),
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 --gkcu-returnOutput} $*'),
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'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gkalpak/aliases",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "My global aliases.",
5
5
  "keywords": [
6
6
  "Utility"