install_lunarvim.ksh 573 B

12345678910111213141516
  1. #!/bin/ksh
  2. doas pkg_add neovim bash
  3. chsh -s $(whereis bash) $(whoami)
  4. LV_BRANCH='release-1.2/neovim-0.8' bash <(curl -s https://raw.githubusercontent.com/LunarVim/LunarVim/release-1.2/neovim-0.8/utils/installer/install.sh)
  5. {
  6. print ''
  7. print '# add $HOME/.local/bin to PATH'
  8. print 'export PATH=$HOME/.local/bin:$PATH'
  9. } >>$HOME/.profile
  10. cp ~/.local/share/lunarvim/lvim/utils/installer/config.example.lua ~/.config/lvim/config.lua
  11. cd ~/.config/lvim/ && lvim --headless +'lua require("lvim.utils").generate_settings()' +qa && sort -o lv-settings.lua{,} && cd -