Merge pull request #31 from mTvare6/main

use gnu sed in mac
This commit is contained in:
siduck76 2021-04-24 18:58:15 +05:30 committed by GitHub
commit 4a86db64c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,12 @@ cp -r init.lua ~/.config/nvim && cp -r lua ~/.config/nvim
read -p "which shell do you use?: " shellname read -p "which shell do you use?: " shellname
echo "$shellname" echo "$shellname"
sed -i "s/bash/$shellname/g" ~/.config/nvim/lua/mappings/lua.lua if [ "$(get_platform)" = "Mac" ]; then
gsed -i "s/bash/$shellname/g" ~/.config/nvim/lua/mappings/lua.lua
else
sed -i "s/bash/$shellname/g" ~/.config/nvim/lua/mappings/lua.lua
fi
echo "shell changed to $shellname on nvim successfully!" echo "shell changed to $shellname on nvim successfully!"
#for f in `find -E . -regex ".*\.vim$|.*\.lua$"`; do #for f in `find -E . -regex ".*\.vim$|.*\.lua$"`; do