From 3865b28f6df055bd825a4d826de35e75096e7858 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Tue, 6 Apr 2021 09:35:22 +0530 Subject: [PATCH] install.sh : prompt users for shell --- install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install.sh b/install.sh index fdce7d5..22ae84b 100755 --- a/install.sh +++ b/install.sh @@ -38,6 +38,13 @@ heading "old nvim config will be deleted so watchout :0" rm -rf ~/.config/nvim/ && mkdir -p ~/.config/nvim cp -r init.lua ~/.config/nvim && cp -r lua ~/.config/nvim +# change shell for nvim +read -p "which shell do you use?: " shellname +echo "$shellname" + +sed -i "s/bash/$shellname/g" ~/.config/nvim/lua/mappings/lua.lua +echo "shell changed to $shellname on nvim successfully!" + #for f in `find -E . -regex ".*\.vim$|.*\.lua$"`; do # p=${f#*/} # echo -e '\t' ${p}