From 1dd3f3d4e76ac563d26d8a098d2cd648d16f329c Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Tue, 8 Dec 2020 11:14:05 +0100 Subject: [PATCH] config/git: convert l alias to script --- .config/git/config | 1 - .local/bin/git-l | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100755 .local/bin/git-l diff --git a/.config/git/config b/.config/git/config index 5db767b..f845967 100644 --- a/.config/git/config +++ b/.config/git/config @@ -72,7 +72,6 @@ f = fetch 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 lo = log --pretty=tformat:'%C(auto)%h%d %s %Cgreen(%cd) %Cblue<%an>%Creset' --date=human --no-merges diff --git a/.local/bin/git-l b/.local/bin/git-l new file mode 100755 index 0000000..16f19ac --- /dev/null +++ b/.local/bin/git-l @@ -0,0 +1,2 @@ +#!/bin/sh +git pull --rebase --autostash "$@" || (printf "\e[31;1mError - aborting rebase!\e[0m\n" >&2 && git rebase --abort)