Install git config before initializing submodules

master
nirenjan 2018-04-26 22:24:46 -07:00
parent 172633dd5f
commit b0d1e83e88
2 changed files with 18 additions and 19 deletions

2
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "scripts"] [submodule "scripts"]
path = scripts path = scripts
url = git@github.com:nirenjan/scripts url = my:scripts

35
install
View File

@ -129,24 +129,6 @@ DF_PATH=$(pwd)
PRINT_PATH=$(echo $DF_PATH | sed "s:^$HOME:~:") PRINT_PATH=$(echo $DF_PATH | sed "s:^$HOME:~:")
echo Installing dotfiles from $PRINT_PATH echo Installing dotfiles from $PRINT_PATH
#######################################################################
# Initialize submodules
#######################################################################
git submodule init
git submodule update
#######################################################################
# Install scripts
#######################################################################
# Create ~/bin folder
mkfolder ~/bin
# Install scripts
lnfile scripts/stardate ~/bin/
lnfile scripts/settitle ~/bin/
lnfile scripts/smartwd ~/bin/
####################################################################### #######################################################################
# Install git configuration # Install git configuration
####################################################################### #######################################################################
@ -170,6 +152,23 @@ then
https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
fi fi
#######################################################################
# Initialize submodules
#######################################################################
git submodule update --init --recursive
#######################################################################
# Install scripts
#######################################################################
# Create ~/bin folder
mkfolder ~/bin
# Install scripts
lnfile scripts/stardate ~/bin/
lnfile scripts/settitle ~/bin/
lnfile scripts/smartwd ~/bin/
####################################################################### #######################################################################
# Install vimrc & plugins # Install vimrc & plugins
####################################################################### #######################################################################