PageRenderTime 120ms CodeModel.GetById 27ms RepoModel.GetById 1ms app.codeStats 0ms

/tag-codespaces/install.sh

https://github.com/willnorris/dotfiles
Shell | 28 lines | 15 code | 7 blank | 6 comment | 1 complexity | ff741c3ddcf0ffecee24bc52b4983f61 MD5 | raw file
Possible License(s): 0BSD, BSD-3-Clause, MIT, WTFPL
  1. #!/bin/bash
  2. sudo apt-get update
  3. sudo apt-get -y install man
  4. sudo chsh -s /usr/bin/zsh codespace
  5. # install ripgrep (https://github.com/BurntSushi/ripgrep/releases/latest)
  6. curl -o /tmp/ripgrep.deb -L https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep_13.0.0_amd64.deb
  7. sudo dpkg -i /tmp/ripgrep.deb
  8. # install bat (https://github.com/sharkdp/bat/releases/latest)
  9. curl -o /tmp/bat.deb -L https://github.com/sharkdp/bat/releases/download/v0.18.3/bat_0.18.3_amd64.deb
  10. sudo dpkg -i /tmp/bat.deb
  11. # install neovim
  12. curl -o /tmp/nvim.tgz -L https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz
  13. sudo tar -xzf /tmp/nvim.tgz -C /usr/local
  14. sudo ln -s /usr/local/nvim-linux64/bin/nvim /usr/local/bin/
  15. # setup rcm config if not present
  16. if [ ! -f "${HOME}/.rcrc" ]; then
  17. cp "${HOME}/.dotfiles/rcrc.example" "${HOME}/.rcrc"
  18. fi
  19. echo 'TAGS="codespaces"' >> ~/.rcrc
  20. # run rcm (force install dotfiles)
  21. PATH="${HOME}/.dotfiles/rcm/bin:${PATH}" rcup -f