install.sh : prompt users for shell

This commit is contained in:
siduck76 2021-04-06 09:35:22 +05:30
parent e9d27bda68
commit 3865b28f6d
1 changed files with 7 additions and 0 deletions

View File

@ -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}