use gnu sed in mac
This commit is contained in:
parent
7dd473df13
commit
aafea2b6f4
1 changed files with 6 additions and 1 deletions
|
@ -53,7 +53,12 @@ cp -r init.lua ~/.config/nvim && cp -r lua ~/.config/nvim
|
|||
read -p "which shell do you use?: " 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!"
|
||||
|
||||
#for f in `find -E . -regex ".*\.vim$|.*\.lua$"`; do
|
||||
|
|
Loading…
Reference in a new issue