-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8efaa2
commit c9a0088
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
require 'add_line_to_file' | ||
require 'ansi' | ||
require 'command' | ||
require 'macos' | ||
|
||
task :git => [:'git:config', :'git:commands', :'git:aliases'] | ||
|
||
|
@@ -19,7 +20,7 @@ namespace :git do | |
command 'git', 'config', '--global', 'user.name', 'Markus Reiter' | ||
command 'git', 'config', '--global', 'user.email', '[email protected]' | ||
|
||
command 'git', 'config', '--global', 'credential.helper', 'osxkeychain' | ||
command 'git', 'config', '--global', 'credential.helper', 'osxkeychain' if macos? | ||
|
||
command 'git', 'config', '--global', 'color.ui', 'auto' | ||
|
||
|
@@ -75,6 +76,10 @@ namespace :git do | |
command 'git', 'config', '--global', 'difftool.araxis.path', 'araxiscompare' | ||
command 'git', 'config', '--global', 'diff.tool', 'araxis' | ||
end | ||
|
||
git_config_private = "#{git_config_dir}/config-private" | ||
command 'git', 'config', '--global', 'include.path', git_config_private | ||
FileUtils.touch git_config_private | ||
end | ||
|
||
desc 'Install Git Commands' | ||
|