From 07ef28e8a2f67f7f8fae5f6c6ecaf87858bc7f47 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 10 Jun 2013 11:23:55 +0900 Subject: [PATCH] add git alias new --- setup.sh | 7 ++++--- vimrc | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/setup.sh b/setup.sh index f7822bb..7d816ac 100755 --- a/setup.sh +++ b/setup.sh @@ -79,6 +79,7 @@ git_config(){ # $_gitconfig alias.ll "!git ls-files | xargs ls -l -CFG --color=auto --time-style=long-iso" $_gitconfig alias.addi "add -i" $_gitconfig alias.clean-p "!test -z \"\$(git status -s -uno)\"" + $_gitconfig alias.new "checkout -b" #$_gitconfig alias.wc "!git ls-files -z | xargs -0 wc" # $_gitconfig push.default "simple" if _iswindows; then @@ -87,9 +88,9 @@ git_config(){ } install_files(){ - src_hilite_src="`pwd`/conf/src-hilite.style" - src_hilite_dst="$HOME/.local/share/source-highlight/src_hilite.style" - install -D --backup "$src_hilite_src" "$src_hilite_dst" + src_hilite_src="`pwd`/conf/src-hilite.style" + src_hilite_dst="$HOME/.local/share/source-highlight/src_hilite.style" + #install -D --backup "$src_hilite_src" "$src_hilite_dst" } mac_defaults(){ diff --git a/vimrc b/vimrc index 4018093..c011595 100644 --- a/vimrc +++ b/vimrc @@ -1,4 +1,4 @@ -" load external file +" "load external file " if filereadable(expand('~/.dotfiles/vimrc')) " source ~/.dotfiles/vimrc " endif