config/git: convert l alias to script

This commit is contained in:
xerus2000 2020-12-08 11:14:05 +01:00
parent 379e37a093
commit 1dd3f3d4e7
2 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,6 @@
f = fetch f = fetch
fa = fetch --all fa = fetch --all
l = !git pull --rebase --autostash || (>&2 echo "Error - aborting rebase!" && git rebase --abort)
lg = log --pretty=tformat:'%C(auto)%h%d %s %Cgreen(%cd) %Cblue<%an>%Creset' --date=human --graph lg = log --pretty=tformat:'%C(auto)%h%d %s %Cgreen(%cd) %Cblue<%an>%Creset' --date=human --graph
lo = log --pretty=tformat:'%C(auto)%h%d %s %Cgreen(%cd) %Cblue<%an>%Creset' --date=human --no-merges lo = log --pretty=tformat:'%C(auto)%h%d %s %Cgreen(%cd) %Cblue<%an>%Creset' --date=human --no-merges

2
.local/bin/git-l Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
git pull --rebase --autostash "$@" || (printf "\e[31;1mError - aborting rebase!\e[0m\n" >&2 && git rebase --abort)