浏览代码

Git things

Tom McKenzie 7 年之前
父节点
当前提交
d55d07ec4e
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 2 0
      .gitconfig
  2. 2 2
      .rc.d/applications.sh

+ 2 - 0
.gitconfig

@@ -40,6 +40,7 @@
     edit-conflicted = ! git diff --name-only | uniq | xargs code
     history = log -p --
 	pushf = push --force-with-lease
+    pullall = ! git pull && git submodule update --init --recursive --remote
 
 [core]
 	editor = vim
@@ -49,6 +50,7 @@
 
 [merge]
 	tool = code
+	conflictstyle = diff3
 
 [push]
 	default = upstream

+ 2 - 2
.rc.d/applications.sh

@@ -5,8 +5,8 @@ if [ -d "${HOME}/.nvm" ]; then
 fi
 
 # export golang bin path
-if [ -d "~/go/bin" ]; then
-  export PATH=$PATH:~/go/bin
+if [ -d "$HOME/go/bin" ]; then
+  export PATH=$PATH:$HOME/go/bin
 fi
 
 # thefuck