Created
April 29, 2022 15:11
-
-
Save lopesivan/80a5c868fc7a4435be5d27d33c1ec4f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| all: status | |
| create: | |
| git init --bare $(GIT_DIR) | |
| $(GIT) config --local status.showUntrackedFiles no | |
| $(GIT) add . | |
| clean: | |
| rm -rf $(GIT_DIR) | |
| add: | |
| $(GIT) add . | |
| commit: | |
| $(GIT) commit -m "update dotfiles" | |
| diff_add: | |
| $(GIT) --no-pager diff --name-only | xargs $(GIT) add | |
| update: diff_add | |
| $(GIT) commit -m "$$(date '+%d-%m-%Y') - update dotfiles" | |
| status: | |
| $(GIT) status | |
| ls: | |
| $(GIT) --no-pager diff --name-only | |
| log: | |
| @echo -n `tput bold tput setb 3`git up: `tput setaf 3` "↑" `tput sgr0`; echo `tput bold tput setb 3`git down: `tput setaf 2` "↓" `tput sgr0` | |
| @$(GIT) --no-pager log --abbrev-commit --abbrev=7 --pretty=format:'%h %s' | |
| @echo | |
| restore: | |
| $(GIT) reset --hard | |
| remote: | |
| $(GIT) remote -v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CONF_NAME = nvim | |
| GIT_DIR = ${HOME}/developer/dotfiles/.$(CONF_NAME) | |
| WORK_TREE = ${HOME}/.config/$(CONF_NAME) | |
| GIT = /usr/bin/git --git-dir=$(GIT_DIR) --work-tree=$(WORK_TREE) | |
| include dev.mk | |
| nvim-treesitter.tgz: | |
| tar cvzf nvim-treesitter.tgz site/pack/packer/start/nvim-treesitter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment