From 2b9d8f3eaba6ef15652e150bec65d7756a50ab44 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 4 May 2023 13:39:10 +0300 Subject: [PATCH] install: note templatedir and pre-commit --- install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install b/install index 763b8877..711d402d 100755 --- a/install +++ b/install @@ -11,6 +11,7 @@ cat conf/tmux.conf > ~/.tmux.conf cat rc/zshrc > ~/.zshrc cat rc/profile > ~/.profile cat conf/gitconfig > ~/.gitconfig +mkdir -p ~/.git-template cat rc/vimrc > ~/.vimrc mkdir -p ~/.config/nvim/ cat conf/init.vim > ~/.config/nvim/init.vim @@ -35,6 +36,10 @@ mkdir -p ~/.ssh/sockets/ chmod a+xr chmod bash -x ./chmod& +if hash pre-commit 2>/dev/null; then + pre-commit init-templatedir ~/.git-template +fi + if [ -f $HOME/.MIKAELAGREP ] then mv $HOME/.MIKAELAGREP $MIKAELA_GREP