@gkalpak/aliases 0.13.0 → 0.13.2
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 +2 -1
- package/bin/config/cfggit.win32.js +2 -1
- package/bin/config/cfggit.wsl.js +2 -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/gshg.js +11 -0
- package/bin/git/gshng.js +11 -0
- package/bin/git/gsync.js +1 -1
- package/bin/misc/alv.js +1 -1
- package/lib/alias-scripts/g-pick-commit.js +25 -8
- package/lib/constants.js +12 -8
- package/package.json +147 -145
- package/scripts/test-pkg.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.13.
|
|
5
|
+
### [Generated by: @gkalpak/aliases v0.13.2]
|
|
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.2]
|
|
6
6
|
### Copy the following into '~/.bashrc':
|
|
7
7
|
|
|
8
8
|
# Set up prompt.
|
package/bin/config/cfggit.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
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.2]
|
|
5
5
|
### Run the following commands:
|
|
6
6
|
|
|
7
7
|
git config --global commit.gpgSign true
|
|
8
8
|
git config --global core.editor "vim"
|
|
9
9
|
git config --global credential.helper "manager"
|
|
10
|
+
git config --global init.defaultBranch "main"
|
|
10
11
|
git config --global merge.tool "kdiff3"
|
|
11
12
|
git config --global mergetool.kdiff3.path "/path/to/kdiff3"
|
|
12
13
|
git config --global mergetool.kdiff3.trustExitCode "false"
|
|
@@ -1,12 +1,13 @@
|
|
|
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.2]
|
|
5
5
|
### Run the following commands:
|
|
6
6
|
|
|
7
7
|
git config --global commit.gpgSign true
|
|
8
8
|
git config --global core.editor "vim"
|
|
9
9
|
git config --global credential.helper "manager"
|
|
10
|
+
git config --global init.defaultBranch "main"
|
|
10
11
|
git config --global merge.tool "kdiff3"
|
|
11
12
|
git config --global mergetool.kdiff3.path "C:/Program Files/KDiff3/bin/kdiff3.exe"
|
|
12
13
|
git config --global mergetool.kdiff3.trustExitCode "false"
|
package/bin/config/cfggit.wsl.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
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.2]
|
|
5
5
|
### Run the following commands:
|
|
6
6
|
|
|
7
7
|
git config --global commit.gpgSign true
|
|
8
8
|
git config --global core.editor "vim"
|
|
9
9
|
git config --global credential.helper "/mnt/c/Program\\ Files/Git/mingw64/bin/git-credential-manager.exe"
|
|
10
|
+
git config --global init.defaultBranch "main"
|
|
10
11
|
git config --global merge.tool "kdiff3"
|
|
11
12
|
git config --global mergetool.kdiff3.path "/mnt/c/Program Files/KDiff3/bin/kdiff3.exe"
|
|
12
13
|
git config --global mergetool.kdiff3.trustExitCode "false"
|
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.2]
|
|
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.2]
|
|
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.2]');
|
|
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.2]
|
|
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.2]
|
|
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/gshg.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
4
|
+
// eslint-disable-next-line max-len
|
|
5
|
+
const cmd = 'git show ${0:::__g-pick-commit --filter-commits="$1" --gkcu-returnOutput=1}';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
|
+
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
|
+
// eslint-disable-next-line quotes
|
|
10
|
+
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
|
11
|
+
}
|
package/bin/git/gshng.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
4
|
+
// eslint-disable-next-line max-len
|
|
5
|
+
const cmd = 'git show --name-only ${0:::__g-pick-commit --filter-commits="$1" --gkcu-returnOutput=1}';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
|
+
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
|
+
// eslint-disable-next-line quotes
|
|
10
|
+
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
|
11
|
+
}
|
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.2');
|
|
@@ -15,8 +15,11 @@ export {
|
|
|
15
15
|
* @function gPickCommit
|
|
16
16
|
*
|
|
17
17
|
* @description
|
|
18
|
-
* Prompt the user to pick one of the available git commits via an interactive list.
|
|
18
|
+
* Prompt the user to pick one of the available git commits via an interactive list. Optionally, filter the commits
|
|
19
|
+
* based on the commit message. Supported runtime arguments:
|
|
20
|
+
* - `--filter-commits` [string]: A basic pattern to filter commit messages (case-sensitive).
|
|
19
21
|
*
|
|
22
|
+
* @param {string[]} [runtimeArgs=[]] - The runtime arguments.
|
|
20
23
|
* @param {IRunConfig} [config={}] - A configuration object. See {@link commandUtils#IRunConfig} for more details.
|
|
21
24
|
*
|
|
22
25
|
* @return {Promise<void|string>} - A promise that resolves to either `undefined` or the selected commit (depending on
|
|
@@ -31,15 +34,29 @@ export {
|
|
|
31
34
|
};
|
|
32
35
|
|
|
33
36
|
// Helpers
|
|
34
|
-
async function _gPickCommit(config) {
|
|
37
|
+
async function _gPickCommit(runtimeArgs = [], config = {}) {
|
|
38
|
+
const maxCommits = 50;
|
|
35
39
|
const glConfig = Object.assign({}, config, {returnOutput: true});
|
|
40
|
+
let glCmd = 'git log --oneline';
|
|
41
|
+
|
|
42
|
+
const filterCommitsPattern =
|
|
43
|
+
(runtimeArgs.find((_arg, idx, arr) => (idx > 0) && (arr[idx - 1] === '--filter-commits')) ??
|
|
44
|
+
runtimeArgs.find(arg => arg.startsWith('--filter-commits='))?.slice('--filter-commits='.length))?.
|
|
45
|
+
replace(/^(['"])(.*)\1$/, '$2');
|
|
46
|
+
if (filterCommitsPattern !== undefined) {
|
|
47
|
+
glCmd += ` | grep "${filterCommitsPattern}"`;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
glCmd += ` --max-count=${maxCommits}`; // `--max-count` works both for `git log` and `grep`.
|
|
36
51
|
|
|
37
52
|
if (config.dryrun) {
|
|
38
|
-
console.log(
|
|
53
|
+
console.log(
|
|
54
|
+
`Pick one from the first ${maxCommits} commits` +
|
|
55
|
+
`${(filterCommitsPattern === undefined) ? '' : ` whose header matches '${filterCommitsPattern}'`}.`);
|
|
39
56
|
return;
|
|
40
57
|
}
|
|
41
58
|
|
|
42
|
-
const commitOutput = await commandUtils.run(
|
|
59
|
+
const commitOutput = await commandUtils.run(glCmd, [], glConfig);
|
|
43
60
|
const commit = await pickCommit(commitOutput);
|
|
44
61
|
|
|
45
62
|
if (config.returnOutput) {
|
|
@@ -49,12 +66,12 @@ async function _gPickCommit(config) {
|
|
|
49
66
|
console.log(commit);
|
|
50
67
|
}
|
|
51
68
|
|
|
52
|
-
function gPickCommit(config) {
|
|
53
|
-
return internal._gPickCommit(config);
|
|
69
|
+
function gPickCommit(runtimeArgs, config) {
|
|
70
|
+
return internal._gPickCommit(runtimeArgs, config);
|
|
54
71
|
}
|
|
55
72
|
|
|
56
|
-
function main(
|
|
57
|
-
return gPickCommit(config);
|
|
73
|
+
function main(runtimeArgs, config) {
|
|
74
|
+
return gPickCommit(runtimeArgs, config);
|
|
58
75
|
}
|
|
59
76
|
|
|
60
77
|
async function pickCommit(commitsStr) {
|
package/lib/constants.js
CHANGED
|
@@ -40,6 +40,7 @@ const DESC_REPLACEMENTS = {
|
|
|
40
40
|
'::__a-builds-dir': '(<.../angular/aio/aio-builds-setup>)',
|
|
41
41
|
'::__g-pick-branch --gkcu-returnOutput=1': '(interactively pick a branch)',
|
|
42
42
|
'::__g-pick-commit --gkcu-returnOutput=1': '(interactively pick a commit)',
|
|
43
|
+
'::__g-pick-commit --filter-commits="$1" --gkcu-returnOutput=1': '(interactively pick a filtered commit)',
|
|
43
44
|
};
|
|
44
45
|
|
|
45
46
|
const DEF_CODE = AliasSpecDefault.DEF_CODE = (cmd, cfg = {}) => stripIndentation(`
|
|
@@ -104,6 +105,7 @@ const CFGGIT_SPEC = (credHelper, kdiff3Path) => new AliasSpec(
|
|
|
104
105
|
git config --global commit.gpgSign true
|
|
105
106
|
git config --global core.editor "vim"
|
|
106
107
|
git config --global credential.helper "${credHelper}"
|
|
108
|
+
git config --global init.defaultBranch "main"
|
|
107
109
|
git config --global merge.tool "kdiff3"
|
|
108
110
|
git config --global mergetool.kdiff3.path "${kdiff3Path}"
|
|
109
111
|
git config --global mergetool.kdiff3.trustExitCode "false"
|
|
@@ -258,7 +260,9 @@ const ALIASES = {
|
|
|
258
260
|
gl1: new AliasDefault('git log --decorate --oneline $* || true'),
|
|
259
261
|
gl1g: new AliasDefault('git log --decorate --oneline | grep $*'),
|
|
260
262
|
gsh: new AliasDefault('git show ${*:::__g-pick-commit --gkcu-returnOutput=1}'),
|
|
263
|
+
gshg: new AliasDefault('git show ${0:::__g-pick-commit --filter-commits="$1" --gkcu-returnOutput=1}'),
|
|
261
264
|
gshn: new AliasDefault('git show --name-only ${*:::__g-pick-commit --gkcu-returnOutput=1}'),
|
|
265
|
+
gshng: new AliasDefault('git show --name-only ${0:::__g-pick-commit --filter-commits="$1" --gkcu-returnOutput=1}'),
|
|
262
266
|
gd: new AliasDefault('ngm-diff-wh $*'),
|
|
263
267
|
gdn: new AliasDefault('ngm-diff-wh --name-only $*'),
|
|
264
268
|
gdh: new AliasDefault('ngm-diff-wh HEAD $*'),
|
|
@@ -275,7 +279,7 @@ const ALIASES = {
|
|
|
275
279
|
|
|
276
280
|
// CHECKOUT
|
|
277
281
|
gco: new AliasDefault('git checkout ${*:::__g-pick-branch --gkcu-returnOutput=1}'),
|
|
278
|
-
gcod: new AliasDefault('git checkout ${0:::gdefb
|
|
282
|
+
gcod: new AliasDefault('git checkout ${0:::gdefb} $*'),
|
|
279
283
|
gcopr: new AliasDefault('git fetch upstream pull/$1/head && git checkout FETCH_HEAD'),
|
|
280
284
|
gcoghpr: SCRIPT_BACKED_ALIAS('gcoghpr', 'Check out a GitHub pull request as a local branch.'),
|
|
281
285
|
'gcoghpr-cleanup': new AliasDefault(
|
|
@@ -311,29 +315,29 @@ const ALIASES = {
|
|
|
311
315
|
// BRANCH
|
|
312
316
|
gb: new AliasDefault('git branch $*'),
|
|
313
317
|
gbc: new AliasDefault(GIT_CREATE_BRANCH_CMD('${2:HEAD}')),
|
|
314
|
-
gbcd: new AliasDefault(GIT_CREATE_BRANCH_CMD('${0:::gdefb
|
|
318
|
+
gbcd: new AliasDefault(GIT_CREATE_BRANCH_CMD('${0:::gdefb}')),
|
|
315
319
|
gbco: new AliasDefault(`git fetch origin $1 && ${GIT_CREATE_BRANCH_CMD('origin/$1')}`),
|
|
316
320
|
gbd: new AliasDefault('git branch --delete --force ${*:::__g-pick-branch --gkcu-returnOutput=1}'),
|
|
317
321
|
|
|
318
322
|
// PULL(-REBASE)
|
|
319
323
|
gpr: new AliasDefault('git pull --rebase $*'),
|
|
320
324
|
gpro: new AliasDefault('git pull --rebase origin ${*:::git rev-parse --abbrev-ref HEAD}'),
|
|
321
|
-
gprod: new AliasDefault('git pull --rebase origin ${0:::gdefb
|
|
325
|
+
gprod: new AliasDefault('git pull --rebase origin ${0:::gdefb} $*'),
|
|
322
326
|
gpru: new AliasDefault('git pull --rebase upstream ${*:::git rev-parse --abbrev-ref HEAD}'),
|
|
323
|
-
gprud: new AliasDefault('git pull --rebase upstream ${0:::gdefb
|
|
327
|
+
gprud: new AliasDefault('git pull --rebase upstream ${0:::gdefb} $*'),
|
|
324
328
|
|
|
325
329
|
// SYNC DEFAULT BRANCH
|
|
326
330
|
gsync: new AliasDefault(
|
|
327
|
-
'git checkout ${1:::gdefb
|
|
328
|
-
'git pull upstream ${1:::gdefb
|
|
329
|
-
'git push origin ${1:::gdefb
|
|
331
|
+
'git checkout ${1:::gdefb} && ' +
|
|
332
|
+
'git pull upstream ${1:::gdefb} && ' +
|
|
333
|
+
'git push origin ${1:::gdefb}'),
|
|
330
334
|
|
|
331
335
|
|
|
332
336
|
// REBASE
|
|
333
337
|
grb: new AliasDefault('git rebase ${*:::__g-pick-branch --gkcu-returnOutput=1}'),
|
|
334
338
|
grba: new AliasDefault('git rebase --abort'),
|
|
335
339
|
grbc: new AliasDefault('git rebase --continue'),
|
|
336
|
-
grbd: new AliasDefault('git rebase --ignore-date ${0:::gdefb
|
|
340
|
+
grbd: new AliasDefault('git rebase --ignore-date ${0:::gdefb} $*'),
|
|
337
341
|
grbi: new AliasDefault('git rebase --interactive HEAD~$1'),
|
|
338
342
|
grbia: new AliasDefault('git rebase --autosquash --interactive HEAD~$1'),
|
|
339
343
|
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.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"description": "My global aliases.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Utility"
|
|
@@ -31,150 +31,152 @@
|
|
|
31
31
|
"~~test-unit": "jasmine test/unit/**/*.spec.js"
|
|
32
32
|
},
|
|
33
33
|
"bin": {
|
|
34
|
-
"__a-builds-dir": "
|
|
35
|
-
"__g-pick-branch": "
|
|
36
|
-
"__g-pick-commit": "
|
|
37
|
-
"aioall": "
|
|
38
|
-
"aioatt": "
|
|
39
|
-
"aiobd": "
|
|
40
|
-
"aiord": "
|
|
41
|
-
"aiorm": "
|
|
42
|
-
"alv": "
|
|
43
|
-
"cfgbash": "
|
|
44
|
-
"cfggit": "
|
|
45
|
-
"cfggpg": "
|
|
46
|
-
"cfgssh": "
|
|
47
|
-
"cfgvim": "
|
|
48
|
-
"cfgwsl": "
|
|
49
|
-
"dkrall": "
|
|
50
|
-
"dkratt": "
|
|
51
|
-
"dkrbd": "
|
|
52
|
-
"dkrrd": "
|
|
53
|
-
"dkrrm": "
|
|
54
|
-
"gaa": "
|
|
55
|
-
"gb": "
|
|
56
|
-
"gbc": "
|
|
57
|
-
"gbcd": "
|
|
58
|
-
"gbco": "
|
|
59
|
-
"gbd": "
|
|
60
|
-
"gcl": "
|
|
61
|
-
"gcm": "
|
|
62
|
-
"gcma": "
|
|
63
|
-
"gcmane": "
|
|
64
|
-
"gcmf": "
|
|
65
|
-
"gcmfc": "
|
|
66
|
-
"gcmfs": "
|
|
67
|
-
"gcmi": "
|
|
68
|
-
"gcmia": "
|
|
69
|
-
"gcmiane": "
|
|
70
|
-
"gcmif": "
|
|
71
|
-
"gcmifc": "
|
|
72
|
-
"gcmifs": "
|
|
73
|
-
"gco": "
|
|
74
|
-
"gcod": "
|
|
75
|
-
"gcoghpr": "
|
|
76
|
-
"gcoghpr-cleanup": "
|
|
77
|
-
"gcopr": "
|
|
78
|
-
"gcp": "
|
|
79
|
-
"gcpa": "
|
|
80
|
-
"gcpc": "
|
|
81
|
-
"gcpx": "
|
|
82
|
-
"gcpxl": "
|
|
83
|
-
"gd": "
|
|
84
|
-
"gd1": "
|
|
85
|
-
"gdn": "
|
|
86
|
-
"gdefb": "
|
|
87
|
-
"gdn1": "
|
|
88
|
-
"gdnh": "
|
|
89
|
-
"gdh": "
|
|
90
|
-
"gl": "
|
|
91
|
-
"gl1": "
|
|
92
|
-
"gl1g": "
|
|
93
|
-
"gmt": "
|
|
94
|
-
"gngprh": "
|
|
95
|
-
"gngprm": "
|
|
96
|
-
"gp": "
|
|
97
|
-
"gp1": "
|
|
98
|
-
"gpf": "
|
|
99
|
-
"gpr": "
|
|
100
|
-
"gpro": "
|
|
101
|
-
"gprod": "
|
|
102
|
-
"gpru": "
|
|
103
|
-
"gprud": "
|
|
104
|
-
"grb": "
|
|
105
|
-
"grba": "
|
|
106
|
-
"grbc": "
|
|
107
|
-
"grbd": "
|
|
108
|
-
"grbi": "
|
|
109
|
-
"grbia": "
|
|
110
|
-
"grbin": "
|
|
111
|
-
"grs": "
|
|
112
|
-
"grs1": "
|
|
113
|
-
"gs": "
|
|
114
|
-
"gsh": "
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
"
|
|
34
|
+
"__a-builds-dir": "bin/aio/__a-builds-dir.js",
|
|
35
|
+
"__g-pick-branch": "bin/git/__g-pick-branch.js",
|
|
36
|
+
"__g-pick-commit": "bin/git/__g-pick-commit.js",
|
|
37
|
+
"aioall": "bin/aio/aioall.js",
|
|
38
|
+
"aioatt": "bin/aio/aioatt.js",
|
|
39
|
+
"aiobd": "bin/aio/aiobd.js",
|
|
40
|
+
"aiord": "bin/aio/aiord.js",
|
|
41
|
+
"aiorm": "bin/aio/aiorm.js",
|
|
42
|
+
"alv": "bin/misc/alv.js",
|
|
43
|
+
"cfgbash": "bin/config/cfgbash.js",
|
|
44
|
+
"cfggit": "bin/config/cfggit.js",
|
|
45
|
+
"cfggpg": "bin/config/cfggpg.js",
|
|
46
|
+
"cfgssh": "bin/config/cfgssh.js",
|
|
47
|
+
"cfgvim": "bin/config/cfgvim.js",
|
|
48
|
+
"cfgwsl": "bin/config/cfgwsl.js",
|
|
49
|
+
"dkrall": "bin/docker/dkrall.js",
|
|
50
|
+
"dkratt": "bin/docker/dkratt.js",
|
|
51
|
+
"dkrbd": "bin/docker/dkrbd.js",
|
|
52
|
+
"dkrrd": "bin/docker/dkrrd.js",
|
|
53
|
+
"dkrrm": "bin/docker/dkrrm.js",
|
|
54
|
+
"gaa": "bin/git/gaa.js",
|
|
55
|
+
"gb": "bin/git/gb.js",
|
|
56
|
+
"gbc": "bin/git/gbc.js",
|
|
57
|
+
"gbcd": "bin/git/gbcd.js",
|
|
58
|
+
"gbco": "bin/git/gbco.js",
|
|
59
|
+
"gbd": "bin/git/gbd.js",
|
|
60
|
+
"gcl": "bin/git/gcl.js",
|
|
61
|
+
"gcm": "bin/git/gcm.js",
|
|
62
|
+
"gcma": "bin/git/gcma.js",
|
|
63
|
+
"gcmane": "bin/git/gcmane.js",
|
|
64
|
+
"gcmf": "bin/git/gcmf.js",
|
|
65
|
+
"gcmfc": "bin/git/gcmfc.js",
|
|
66
|
+
"gcmfs": "bin/git/gcmfs.js",
|
|
67
|
+
"gcmi": "bin/git/gcmi.js",
|
|
68
|
+
"gcmia": "bin/git/gcmia.js",
|
|
69
|
+
"gcmiane": "bin/git/gcmiane.js",
|
|
70
|
+
"gcmif": "bin/git/gcmif.js",
|
|
71
|
+
"gcmifc": "bin/git/gcmifc.js",
|
|
72
|
+
"gcmifs": "bin/git/gcmifs.js",
|
|
73
|
+
"gco": "bin/git/gco.js",
|
|
74
|
+
"gcod": "bin/git/gcod.js",
|
|
75
|
+
"gcoghpr": "bin/git/gcoghpr.js",
|
|
76
|
+
"gcoghpr-cleanup": "bin/git/gcoghpr-cleanup.js",
|
|
77
|
+
"gcopr": "bin/git/gcopr.js",
|
|
78
|
+
"gcp": "bin/git/gcp.js",
|
|
79
|
+
"gcpa": "bin/git/gcpa.js",
|
|
80
|
+
"gcpc": "bin/git/gcpc.js",
|
|
81
|
+
"gcpx": "bin/git/gcpx.js",
|
|
82
|
+
"gcpxl": "bin/git/gcpxl.js",
|
|
83
|
+
"gd": "bin/git/gd.js",
|
|
84
|
+
"gd1": "bin/git/gd1.js",
|
|
85
|
+
"gdn": "bin/git/gdn.js",
|
|
86
|
+
"gdefb": "bin/git/gdefb.js",
|
|
87
|
+
"gdn1": "bin/git/gdn1.js",
|
|
88
|
+
"gdnh": "bin/git/gdnh.js",
|
|
89
|
+
"gdh": "bin/git/gdh.js",
|
|
90
|
+
"gl": "bin/git/gl.js",
|
|
91
|
+
"gl1": "bin/git/gl1.js",
|
|
92
|
+
"gl1g": "bin/git/gl1g.js",
|
|
93
|
+
"gmt": "bin/git/gmt.js",
|
|
94
|
+
"gngprh": "bin/git/gngprh.js",
|
|
95
|
+
"gngprm": "bin/git/gngprm.js",
|
|
96
|
+
"gp": "bin/git/gp.js",
|
|
97
|
+
"gp1": "bin/git/gp1.js",
|
|
98
|
+
"gpf": "bin/git/gpf.js",
|
|
99
|
+
"gpr": "bin/git/gpr.js",
|
|
100
|
+
"gpro": "bin/git/gpro.js",
|
|
101
|
+
"gprod": "bin/git/gprod.js",
|
|
102
|
+
"gpru": "bin/git/gpru.js",
|
|
103
|
+
"gprud": "bin/git/gprud.js",
|
|
104
|
+
"grb": "bin/git/grb.js",
|
|
105
|
+
"grba": "bin/git/grba.js",
|
|
106
|
+
"grbc": "bin/git/grbc.js",
|
|
107
|
+
"grbd": "bin/git/grbd.js",
|
|
108
|
+
"grbi": "bin/git/grbi.js",
|
|
109
|
+
"grbia": "bin/git/grbia.js",
|
|
110
|
+
"grbin": "bin/git/grbin.js",
|
|
111
|
+
"grs": "bin/git/grs.js",
|
|
112
|
+
"grs1": "bin/git/grs1.js",
|
|
113
|
+
"gs": "bin/git/gs.js",
|
|
114
|
+
"gsh": "bin/git/gsh.js",
|
|
115
|
+
"gshg": "bin/git/gshg.js",
|
|
116
|
+
"gshn": "bin/git/gshn.js",
|
|
117
|
+
"gshng": "bin/git/gshng.js",
|
|
118
|
+
"gst": "bin/git/gst.js",
|
|
119
|
+
"gstk": "bin/git/gstk.js",
|
|
120
|
+
"gstl": "bin/git/gstl.js",
|
|
121
|
+
"gstm": "bin/git/gstm.js",
|
|
122
|
+
"gstp": "bin/git/gstp.js",
|
|
123
|
+
"gsync": "bin/git/gsync.js",
|
|
124
|
+
"halp": "bin/misc/halp.js",
|
|
125
|
+
"ll": "bin/misc/ll.js",
|
|
126
|
+
"lla": "bin/misc/lla.js",
|
|
127
|
+
"nad": "bin/node/nad.js",
|
|
128
|
+
"naga": "bin/node/naga.js",
|
|
129
|
+
"nap": "bin/node/nap.js",
|
|
130
|
+
"niin": "bin/node/niin.js",
|
|
131
|
+
"nls": "bin/node/nls.js",
|
|
132
|
+
"nls1": "bin/node/nls1.js",
|
|
133
|
+
"nlsg": "bin/node/nlsg.js",
|
|
134
|
+
"nlsg1": "bin/node/nlsg1.js",
|
|
135
|
+
"nr": "bin/node/nr.js",
|
|
136
|
+
"nrd": "bin/node/nrd.js",
|
|
137
|
+
"nrin": "bin/node/nrin.js",
|
|
138
|
+
"nrp": "bin/node/nrp.js",
|
|
139
|
+
"nrx": "bin/node/nrx.js",
|
|
140
|
+
"ns": "bin/node/ns.js",
|
|
141
|
+
"nsin": "bin/node/nsin.js",
|
|
142
|
+
"nsx": "bin/node/nsx.js",
|
|
143
|
+
"nt": "bin/node/nt.js",
|
|
144
|
+
"ntin": "bin/node/ntin.js",
|
|
145
|
+
"ntx": "bin/node/ntx.js",
|
|
146
|
+
"nua": "bin/node/nua.js",
|
|
147
|
+
"nud": "bin/node/nud.js",
|
|
148
|
+
"nup": "bin/node/nup.js",
|
|
149
|
+
"nv": "bin/node/nv.js",
|
|
150
|
+
"nvls": "bin/node/nvls.js",
|
|
151
|
+
"nvlsa": "bin/node/nvlsa.js",
|
|
152
|
+
"nvmup": "bin/node/nvmup.js",
|
|
153
|
+
"nvu": "bin/node/nvu.js",
|
|
154
|
+
"osv": "bin/misc/osv.js",
|
|
155
|
+
"salfup": "bin/misc/salfup.js",
|
|
156
|
+
"srv": "bin/node/srv.js",
|
|
157
|
+
"srvw": "bin/node/srvw.js",
|
|
158
|
+
"yad": "bin/node/yad.js",
|
|
159
|
+
"yaga": "bin/node/yaga.js",
|
|
160
|
+
"yap": "bin/node/yap.js",
|
|
161
|
+
"yiin": "bin/node/yiin.js",
|
|
162
|
+
"yls": "bin/node/yls.js",
|
|
163
|
+
"yls1": "bin/node/yls1.js",
|
|
164
|
+
"ylsg": "bin/node/ylsg.js",
|
|
165
|
+
"ylsg1": "bin/node/ylsg1.js",
|
|
166
|
+
"yr": "bin/node/yr.js",
|
|
167
|
+
"yrd": "bin/node/yrd.js",
|
|
168
|
+
"yrin": "bin/node/yrin.js",
|
|
169
|
+
"yrp": "bin/node/yrp.js",
|
|
170
|
+
"yrx": "bin/node/yrx.js",
|
|
171
|
+
"ys": "bin/node/ys.js",
|
|
172
|
+
"ysin": "bin/node/ysin.js",
|
|
173
|
+
"ysx": "bin/node/ysx.js",
|
|
174
|
+
"yt": "bin/node/yt.js",
|
|
175
|
+
"ytin": "bin/node/ytin.js",
|
|
176
|
+
"ytx": "bin/node/ytx.js",
|
|
177
|
+
"yua": "bin/node/yua.js",
|
|
178
|
+
"yud": "bin/node/yud.js",
|
|
179
|
+
"yup": "bin/node/yup.js"
|
|
178
180
|
},
|
|
179
181
|
"type": "module",
|
|
180
182
|
"license": "Unlicense",
|
package/scripts/test-pkg.js
CHANGED