Skip to content

Commit 490a23f

Browse files
committed
feat(git): add git log all and detailed all aliases
1 parent eb342f9 commit 490a23f

2 files changed

Lines changed: 21 additions & 24 deletions

File tree

.config/git/aliases.gitconfig

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,20 @@
33
b = branch
44
bl = !git --no-pager branch --verbose --all
55
c = commit
6-
d = "! args=$@; shift $#; nvim +\"DiffviewOpen $args\""
6+
d = "!args=$@; shift $#; nvim +\"DiffviewOpen $args\""
77
ds = d --staged
88
f = fetch
9-
ld = log --graph --branches --remotes --tags --date=iso8601 --pretty=log-full
9+
l = "log --graph --date=iso8601 --pretty=log-default"
10+
ld = log --graph --date=iso8601 --pretty=log-full
11+
la = log --graph --branches --remotes --tags --date=iso8601 --pretty=log-default
12+
lda = log --graph --branches --remotes --tags --date=iso8601 --pretty=log-full
1013
prune-merged = !git branch --merged | grep --invert-match --extended-regexp '\\*' | xargs -n 1 git branch --delete
1114
r = reflog --date=iso8601 --pretty=reflog-default
1215
rd = reflog --date=iso8601 --pretty=reflog-full
1316
s = status --short
1417
sm = submodule
1518
sw = switch
1619
fixup = "!git log -n 50 --pretty=format:'%h %s' --no-merges | fzf | cut -c -7 | xargs -o git commit --fixup"
17-
l = "! \
18-
f() { \
19-
if (( $# == 0 )); then \
20-
git log --graph --branches --remotes --tags --date=iso8601 --pretty=log-default; \
21-
else \
22-
git log --graph --date=iso8601 --pretty=log-default \"$@\"; \
23-
fi; \
24-
}; f"
2520
standup = "! \
2621
f() { \
2722
git l \

.config/zsh/config/aliases.zsh

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,22 @@ alias pn='pnpm'
1919
alias px='pnpx'
2020

2121
typeset -A git_aliases=(
22-
a add
23-
b branch
24-
bl branch
25-
c commit
26-
d diff
27-
ds diff
28-
f fetch
29-
l log
30-
ld log
31-
r reflog
32-
rd reflog
33-
s status
34-
sm submodule
35-
sw switch
22+
a add
23+
b branch
24+
bl branch
25+
c commit
26+
d diff
27+
ds diff
28+
f fetch
29+
l log
30+
ld log
31+
la log
32+
lda log
33+
r reflog
34+
rd reflog
35+
s status
36+
sm submodule
37+
sw switch
3638
)
3739

3840
# Loop through each alias, create the alias, and set the compdef

0 commit comments

Comments
 (0)