git alias
This commit is contained in:
8
Makefile
8
Makefile
@@ -24,11 +24,19 @@ LNDIR := ln -sv
|
|||||||
DOTFILES_DIR := $(shell pwd)
|
DOTFILES_DIR := $(shell pwd)
|
||||||
TARGET_DIR := $(HOME)
|
TARGET_DIR := $(HOME)
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
|
all: nvim git
|
||||||
|
|
||||||
.PHONY: nvim
|
.PHONY: nvim
|
||||||
nvim:
|
nvim:
|
||||||
rm -rf $(TARGET_DIR)/.config/nvim
|
rm -rf $(TARGET_DIR)/.config/nvim
|
||||||
$(LNDIR) $(DOTFILES_DIR)/nvim/.config/nvim $(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:
|
# zsh:
|
||||||
# $(LN) ./zsh/.zshrc ~/.zshrc
|
# $(LN) ./zsh/.zshrc ~/.zshrc
|
||||||
# $(LN) ./zsh/.zprofile ~/.zprofile
|
# $(LN) ./zsh/.zprofile ~/.zprofile
|
||||||
|
|||||||
4
git/.gitconfig
Normal file
4
git/.gitconfig
Normal 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
|
||||||
Reference in New Issue
Block a user