From 6ccd5915daf9f9c8c906ed5b8a092b71a81fd4a0 Mon Sep 17 00:00:00 2001 From: hugo gogo Date: Tue, 30 Aug 2022 11:38:30 +0200 Subject: [PATCH] added aciton in install : declar vim as default editor for git --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index 813b18e..57a062b 100644 --- a/install.sh +++ b/install.sh @@ -12,6 +12,10 @@ D_CONFIG_FILES="config_files" mkdir -p ~/.vim/templates mkdir -p ~/.vim/swapfiles +# tells git to use vim as default editor +echo -e $MAGENTA"declared vim as default editor for git"$ENDCO +git config --global core.editor "vim" + # receive 1 argument : absolute path to config file function save_bak { @@ -80,3 +84,4 @@ install "$HOME/.vim/templates/skeleton.cpp" install "$HOME/.vim/templates/skeleton.hpp" install "$HOME/.vim/templates/skeleton_main.cpp" install "$HOME/.vim/templates/skeleton_makefile" +