Browse Source

Adds global gitignore

Tom McKenzie 9 năm trước cách đây
mục cha
commit
098408ec4f
4 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 3 0
      .gitconfig
  2. 1 0
      .gitignore-global
  3. 0 1
      .zshrc
  4. 1 1
      setup.sh

+ 3 - 0
.gitconfig

@@ -32,3 +32,6 @@
 [alias]
     fancy-log  = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative
     branches = for-each-ref --sort='-authordate:iso8601' --format=' %(color:green)%(authordate:iso8601) %(color:white)%(objectname:short) %09%(color:yellow)%(refname:short) %09%(color:white)%(upstream:track) %(contents:subject)' refs/heads
+[core]
+	editor = subl -n -w
+	excludesfile = ~/.gitignore-global

+ 1 - 0
.gitignore-global

@@ -0,0 +1 @@
+.DS_Store

+ 0 - 1
.zshrc

@@ -89,4 +89,3 @@ else
   export EDITOR='subl'
 fi
 
-source $(brew --prefix nvm)/nvm.sh

+ 1 - 1
setup.sh

@@ -1,7 +1,7 @@
 # symlink dotfiles
 dir=~/dotfiles
 olddir=~/dotfiles/bak   # backup directory
-files=".zshrc .bashrc .vimrc .bash_logout .gitconfig .gemrc"    # list of files/folders to symlink in homedir
+files=".zshrc .bashrc .vimrc .bash_logout .gitconfig .gitignore .gemrc"    # list of files/folders to symlink in homedir
 
 ## create dotfiles_old in homedir
 mkdir -p $olddir