From 6c18686f3f7cedcbef0ef74306b01d7d7403f3b3 Mon Sep 17 00:00:00 2001 From: Matthew Jensen Date: Wed, 7 Aug 2019 19:08:57 -0700 Subject: [PATCH] add real name to github. fix base dir path. --- dotfiles/.gitconfig | 2 +- init.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dotfiles/.gitconfig b/dotfiles/.gitconfig index b331584..31fb881 100644 --- a/dotfiles/.gitconfig +++ b/dotfiles/.gitconfig @@ -1,5 +1,5 @@ [user] - name = Les Vegetables + name = Matthew Jensen email = "matt@happyhousemedia.com" [alias] lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all diff --git a/init.sh b/init.sh index 69b161b..0138d8b 100755 --- a/init.sh +++ b/init.sh @@ -1,4 +1,4 @@ -DOTFILE_DIR=$HOME/dotfiles +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" rm $HOME/.vim/ -rf rm $HOME/.vim/autoload/ -rf rm $HOME/.vim/bundle/ -rf @@ -12,13 +12,13 @@ curl -LSso $HOME/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim git clone https://github.com/ctrlpvim/ctrlp.vim.git $HOME/.vim/bundle/ctrlp.vim git clone https://github.com/jpalardy/vim-slime.git $HOME/.vim/bundle/vim-slime -cp $DOTFILE_DIR/dotfiles/.vimrc $HOME/.vimrc +cp -rf $DIR/dotfiles/.vimrc $HOME/.vimrc echo ".vimrc copied" -cp $DOTFILE_DIR/dotfiles/.gitconfig $HOME/.gitconfig +cp $DIR/dotfiles/.gitconfig $HOME/.gitconfig echo ".gitconfig copied" -cp $DOTFILE_DIR/dotfiles/.bash_profile $HOME/.bash_profile +cp $DIR/dotfiles/.bash_profile $HOME/.bash_profile echo ".bash_profile copied" source $HOME/.bash_profile