File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,14 @@ return hm.task({
4
4
name = " git" ,
5
5
description = " setup and configure node" ,
6
6
run = function (ctx )
7
+ -- ctx:install({
8
+ -- ["rust-parallel"] = {
9
+ -- windows = "cargo",
10
+ -- macos = "homebrew"
11
+ -- };
12
+ -- "git";
13
+ -- "fzf";
14
+ -- })
7
15
ctx :template (" gitconfig.tmpl" , hm .path (hm .home_dir , " .gitconfig" ))
8
16
9
17
ctx :copy (" gitignore-global" , hm .path (hm .home_dir , " .gitignore" ))
Original file line number Diff line number Diff line change 36
36
r = remote -v
37
37
s = status
38
38
st = status -bs
39
- co = "!git for-each-ref --format='%(refname:short)' refs/heads | fzf | xargs git checkout"
39
+ co = "!git for-each-ref --format='%(refname:short)' refs/heads | fzf | rust-parallel git checkout"
40
40
last = log -1 HEAD --stat
41
41
pp = "!git pull && git push"
42
42
pt = "!git pull && git pull --tags"
43
43
up = "!git push && git push --tags"
44
- dead = "!git fetch --prune && git branch --merged | rg -v 'main|master' | xargs git branch -d"
45
- gone = "!git fetch --all --prune && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D;"
44
+ dead = "!git fetch --prune && git branch --merged | rg -v 'main|master' | rust-parallel git branch -d"
45
+ gone = "!git fetch --all --prune && git branch -vv | awk '/: gone]/{print $1}' | rust-parallel git branch -D;"
46
46
[github]
47
47
user = sondr3
48
48
[core]
You can’t perform that action at this time.
0 commit comments