Browse Source

:wrench: add git & tmux setup for spring

Jeremy Zheng 3 years ago
parent
commit
a3eea398a6
2 changed files with 12 additions and 0 deletions
  1. 0 0
      scripts/spring/user/create.sh
  2. 12 0
      scripts/spring/user/setup.sh

+ 0 - 0
scripts/spring/user.sh → scripts/spring/user/create.sh


+ 12 - 0
scripts/spring/setup.sh → scripts/spring/user/setup.sh

@@ -66,6 +66,18 @@ then
     ln -sf /workspace/www/$USER $HOME/www
 fi
 
+echo 'setup tmux'
+if [ ! -f $HOME/.tmux.conf ]
+then
+    echo 'set-option -g history-limit 102400' > $HOME/.tmux.conf
+    echo 'set-option -g default-shell "/bin/zsh"' >> $HOME/.tmux.conf
+fi
+
+echo 'setup git'
+git config --global core.quotepath false
+git config --global http.version HTTP/1.1
+git config --global pull.rebase false
+
 echo "done."
 
 exit 0