Added alias to search git log
This commit is contained in:
parent
4e55cab37e
commit
b45b28fbba
2 changed files with 14 additions and 2 deletions
|
@ -48,7 +48,15 @@ in {
|
|||
userEmail = cfg.userEmail;
|
||||
|
||||
aliases = {
|
||||
# Prettier log
|
||||
lol = "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative";
|
||||
# Find log and grab its hash
|
||||
lof = ''
|
||||
!${pkgs.git}/bin/git log --pretty=oneline \
|
||||
| ${pkgs.fzf}/bin/fzf --scheme history \
|
||||
| ${pkgs.gawk}/bin/awk '{print $1}'
|
||||
'';
|
||||
# Push up a new branch with the same as local
|
||||
pushup = "push -u origin HEAD";
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue