Merge branch 'master' of github.com:vsviridov/dotfiles
This commit is contained in:
18
gitconfig
18
gitconfig
@@ -1,21 +1,9 @@
|
|||||||
[user]
|
[user]
|
||||||
name = Vasili Sviridov
|
name = Vasili Sviridov
|
||||||
email = vasili@sviridov.ca
|
email = vasili@sviridov.ca
|
||||||
|
|
||||||
[push]
|
[push]
|
||||||
default = simple
|
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]
|
[core]
|
||||||
editor = /usr/bin/vim
|
editor = /usr/bin/vim
|
||||||
|
|||||||
9
setup.sh
9
setup.sh
@@ -1,17 +1,18 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
# From aaronjensen/dotfiles
|
# From aaronjensen/dotfiles
|
||||||
|
|
||||||
cd `dirname $0`
|
cd "$(dirname "$0")"
|
||||||
F=`pwd |sed -e "s#$HOME/\?##"`
|
F=$( pwd |sed -e "s#$HOME/\?##" )
|
||||||
|
|
||||||
for P in *
|
for P in *
|
||||||
do
|
do
|
||||||
# skip setup
|
# skip setup
|
||||||
if [ "$P" = "setup.sh" ]; then continue; fi
|
if [ "$P" = "setup.sh" ]; then continue; fi
|
||||||
|
if [ "$P" = "README.md" ]; then continue; fi
|
||||||
|
|
||||||
# ensure permissions
|
# ensure permissions
|
||||||
chmod -R o-rwx,g-rwx $P
|
chmod -R o-rwx,g-rwx "$P"
|
||||||
|
|
||||||
# skip existing links
|
# skip existing links
|
||||||
if [ -h "$HOME/.$P" ]; then continue; fi
|
if [ -h "$HOME/.$P" ]; then continue; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user