#!/bin/bash

script_dir=$(pushd `dirname $0` > /dev/null && pwd -P)

$script_dir/../install.sh

# User specific install steps

git config --global format.pretty format:"%C(yellow)%h%Creset %s%n%Cgreen%ad%Creset %aN <%aE>%n"

echo "Customizing KDiff3 settings"

if [ ! -e "~/.kdiff3rc" ]
then
    cp $script_dir/.kdiff3rc-base ~/.kdiff3rc
fi

$script_dir/apply-kdiff3rc.sh $script_dir/.kdiff3rc ~/.kdiff3rc

echo "Creating 'hub' alias"

git config --global alias.hub \!"sh -c 'git clone git@github.com:\$1.git \${@:2}' -"

echo "Creating 'vsoc' and 'vsor' aliases"

$script_dir/../ensure-script.sh vso-alias "$(<$script_dir/git-scripts/vso-alias.sh)"

git config --global alias.vsoc \!". /c/Users/wiand/.git-scripts/vso-alias.sh; clone" ""
git config --global alias.vsor \!". /c/Users/wiand/.git-scripts/vso-alias.sh; remote" ""
#!/bin/bash

script_dir=$(pushd `dirname $0` > /dev/null && pwd -P)

$script_dir/../install.sh

# User specific install steps

git config --global format.pretty format:"%C(yellow)%h%Creset %s%n%Cgreen%ad%Creset %aN <%aE>%n"

echo "Customizing KDiff3 settings"

if [ ! -e "~/.kdiff3rc" ]
then
    cp $script_dir/.kdiff3rc-base ~/.kdiff3rc
fi

$script_dir/apply-kdiff3rc.sh $script_dir/.kdiff3rc ~/.kdiff3rc

echo "Creating 'hub' alias"

git config --global alias.hub \!"sh -c 'git clone git@github.com:\$1.git \${@:2}' -"

echo "Creating 'vsoc' and 'vsor' aliases"

$script_dir/../ensure-script.sh vso-alias "$(<$script_dir/git-scripts/vso-alias.sh)"

git config --global alias.vsoc \!". ~/.git-scripts/vso-alias.sh; clone" ""
git config --global alias.vsor \!". ~/.git-scripts/vso-alias.sh; remote" ""

Use home path for vsoc and vsor aliases
Use home path for vsoc and vsor aliases
