From 5969d29704d2fb7e77abf92b39504a0989487c1e Mon Sep 17 00:00:00 2001 From: Roman Volovoy Date: Fri, 5 Jun 2026 19:30:55 +0200 Subject: [PATCH] git alias --- Makefile | 8 ++++++++ git/.gitconfig | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 git/.gitconfig diff --git a/Makefile b/Makefile index 3ad19d8..1173038 100644 --- a/Makefile +++ b/Makefile @@ -24,11 +24,19 @@ LNDIR := ln -sv DOTFILES_DIR := $(shell pwd) TARGET_DIR := $(HOME) +.PHONY: all +all: nvim git + .PHONY: nvim nvim: rm -rf $(TARGET_DIR)/.config/nvim $(LNDIR) $(DOTFILES_DIR)/nvim/.config/nvim $(TARGET_DIR)/.config/nvim +.PHONY: git +git: + rm -f $(TARGET_DIR)/.gitconfig + $(LN) $(DOTFILES_DIR)/git/.gitconfig $(TARGET_DIR)/.gitconfig + # zsh: # $(LN) ./zsh/.zshrc ~/.zshrc # $(LN) ./zsh/.zprofile ~/.zprofile diff --git a/git/.gitconfig b/git/.gitconfig new file mode 100644 index 0000000..ce7df99 --- /dev/null +++ b/git/.gitconfig @@ -0,0 +1,4 @@ +[alias] +lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all +lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' +lg = lg1