Skip to content

Commit 86aeee4

Browse files
committed
global gitignore
1 parent ef88403 commit 86aeee4

File tree

4 files changed

+43
-7
lines changed

4 files changed

+43
-7
lines changed

.bashrc

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ if [ ! -f ~/.gitconfig ]; then
8787
git config --global help.autocorrect 1
8888
git config --global push.default matching
8989
git config --global github.user "rkh"
90+
git config --global core.excludesfile ~/.global_gitignore
9091
echo "please add your github token to ~/.gitconf"
9192
else
9293
if [ "$(git config --global user.name)" != "$USER_NAME" ]; then

.gitignore

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
nbproject
2-
*~
3-
*.rbc
41
/.vim/sessions
5-
*.pyc
62
.gemrc

.global_gitignore

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
pkg
2+
nbproject
3+
*~
4+
*.rbc
5+
*.pyc
6+
*.log
7+
*.gem
8+
*.db
9+
*.sqlite3
10+
*.bak
11+
*.orig
12+
*.rej
13+
*.swo
14+
*.swp
15+
*.tmproj
16+
*.a
17+
*.bundle
18+
*.dSYM
19+
*.dylib
20+
*.la
21+
*.lo
22+
*.o
23+
*.so
24+
.*.d
25+
.\#*
26+
.dotest
27+
.gdb_history
28+
.glimpse*
29+
.hg
30+
.hgignore
31+
COMMIT
32+
TAGS
33+
.svn
34+
autom4te.cache
35+
code-cache
36+
coverage
37+
tmp
38+
build
39+
dist
40+
setuptools-*
41+
.sass-cache

Rakefile

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ namespace :install do
1212
Dir.glob files do |file|
1313
source = File.expand_path file
1414
target = File.join ENV["HOME"], file
15-
print " \033[0;32m>>\033[0m "
1615
FileUtils::Verbose.mkdir_p File.dirname(target)
17-
print " \033[0;32m>>\033[0m "
1816
FileUtils::Verbose.ln_sf source, target
1917
end
2018
end
@@ -23,6 +21,6 @@ namespace :install do
2321

2422
install :irb, "{.irbrc,.config/irb/*.rb}"
2523
install :vim, ".vim*"
26-
install :bash, "{.bash*,.git_completion,.rvmrc}"
24+
install :bash, "{.bash*,.git_completion,.rvmrc,.global_gitignore}"
2725

2826
end

0 commit comments

Comments
 (0)