Merge branch 'master' of github.com:vsviridov/dotfiles
This commit is contained in:
12
gitconfig
12
gitconfig
@@ -4,18 +4,6 @@
|
||||
|
||||
[push]
|
||||
default = simple
|
||||
[difftool "bcompare-mac"]
|
||||
cmd = "\"/Applications/Beyond Compare 2.app/Contents/MacOS/bcompare"\"
|
||||
[mergetool "bcompare-mac"]
|
||||
cmd = "\"/Applications/Beyond Compare 2.app/Contents/MacOS/bcompare\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\""
|
||||
trustExitCode = true
|
||||
|
||||
[difftool "sourcetree"]
|
||||
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
|
||||
# path =
|
||||
[mergetool "sourcetree"]
|
||||
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
|
||||
trustExitCode = true
|
||||
|
||||
[core]
|
||||
editor = /usr/bin/vim
|
||||
|
||||
9
setup.sh
9
setup.sh
@@ -1,17 +1,18 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# From aaronjensen/dotfiles
|
||||
|
||||
cd `dirname $0`
|
||||
F=`pwd |sed -e "s#$HOME/\?##"`
|
||||
cd "$(dirname "$0")"
|
||||
F=$( pwd |sed -e "s#$HOME/\?##" )
|
||||
|
||||
for P in *
|
||||
do
|
||||
# skip setup
|
||||
if [ "$P" = "setup.sh" ]; then continue; fi
|
||||
if [ "$P" = "README.md" ]; then continue; fi
|
||||
|
||||
# ensure permissions
|
||||
chmod -R o-rwx,g-rwx $P
|
||||
chmod -R o-rwx,g-rwx "$P"
|
||||
|
||||
# skip existing links
|
||||
if [ -h "$HOME/.$P" ]; then continue; fi
|
||||
|
||||
Reference in New Issue
Block a user