git alias

This commit is contained in:
Roman Volovoy
2026-06-05 19:30:55 +02:00
parent dbb47e6933
commit 5969d29704
2 changed files with 12 additions and 0 deletions

View File

@@ -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

4
git/.gitconfig Normal file
View File

@@ -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