Skip to content

Commit

Permalink
refactor: clean-up personal gitconfig (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgokcin authored Dec 12, 2024
1 parent 62eabf1 commit bdb210a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ For a full list of available commands, run `make help`.
### Git Configuration

- `base.gitconfig`: Common Git configuration
- `personal.gitconfig`: Personal Git settings
- `work.gitconfig`: Work-specific Git settings

### Shell Configuration
Expand Down Expand Up @@ -109,6 +108,6 @@ These AI-assisted tools and prompts are designed to enhance your development wor
You can customize the setup by modifying the relevant configuration files:

- Edit `.zshrc` for shell customizations
- Modify Git configs in `base.gitconfig`, `personal.gitconfig`, or `work.gitconfig`
- Modify Git configs in `base.gitconfig`, or `work.gitconfig`
- Adjust editor settings in their respective configuration files
- Customize AI prompts in the `ai-stuff/cursor/prompts` directory
7 changes: 1 addition & 6 deletions base.gitconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[user]
# Change this to your name
name = Deniz Gökçin
email = dgokcin@gmail.com

[init]
defaultBranch = main
Expand Down Expand Up @@ -184,11 +184,6 @@
# Automatically correct and execute mistyped commands
autocorrect = 1

# Default personal config loaded first relative to the git config directory
[include]
path = personal.gitconfig

# Work config will override personal settings when in work directories
[includeIf "gitdir:~/codes/work/"]
path = work.gitconfig

1 change: 0 additions & 1 deletion makefiles/gitconfigs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ setup-git: ## Setup git config
$(call mkdir_safe,${HOME}/.config/git)
$(call mkdir_safe,${XDG_CONFIG_HOME}/git)
$(call symlink,base.gitconfig,${XDG_CONFIG_HOME}/git/config)
$(call symlink,personal.gitconfig,${XDG_CONFIG_HOME}/git/personal.gitconfig)
$(call symlink,work.gitconfig,${XDG_CONFIG_HOME}/git/work.gitconfig)
$(call symlink,.inputrc,${HOME}/.inputrc)

Expand Down
1 change: 0 additions & 1 deletion makefiles/utils.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ clean:
$(call remove_file,${HOME}/.gvimrc)
$(call remove_file,${HOME}/.gitconfig)
$(call remove_file,${XDG_CONFIG_HOME}/git/config)
$(call remove_file,${XDG_CONFIG_HOME}/git/personal.gitconfig)
$(call remove_file,${XDG_CONFIG_HOME}/git/work.gitconfig)
$(call remove_file,${HOME}/.bash_profile)
$(call remove_file,${HOME}/.aliases)
Expand Down

0 comments on commit bdb210a

Please sign in to comment.