config(git): init global ignore

main
sudo pacman -Syu 2024-02-17 15:26:20 +07:00
parent c6691243a0
commit 80f9bdd515
3 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,7 @@
[[apps.git.paths]]
internal = "data/git/ignore"
external = "~/.config/git/ignore"
[[apps.zsh.paths]]
internal = "data/zsh/top-zshrc"
external = "~/.config/zsh/top-zshrc"

11
data/git/ignore Normal file
View File

@ -0,0 +1,11 @@
# macOS
.DS_Store
# Window
*.exe
# IntelliJ
.idea
# VSCode
.vscode

View File

@ -24,7 +24,10 @@ git config --global alias.sw switch
git config --global alias.tg "tag --sort=-version:refname"
# Misc
git config --global commit.verbose true
git config --global core.excludesfile "~/.config/git/ignore"
git config --global core.fsmonitor true
git config --global diff.algorithm histogram
git config --global diff.colorMoved no
git config --global fetch.prune true
git config --global init.defaultBranch main