PageRenderTime 34ms CodeModel.GetById 38ms RepoModel.GetById 1ms app.codeStats 0ms

/init.sh

https://github.com/miripiruni/dotfiles
Shell | 45 lines | 34 code | 8 blank | 3 comment | 2 complexity | 0cc2089820fa466f50f9683e9a72010d MD5 | raw file
  1. declare -a tools=("git" # https://git-scm.com/download/mac
  2. "vim" # https://formulae.brew.sh/formula/vim
  3. # See https://github.com/ibraheemdev/modern-unix
  4. "bat" # https://github.com/sharkdp/bat
  5. "tldr" # https://tldr.sh
  6. "exa" # https://github.com/ogham/exa
  7. "dust" # https://github.com/bootandy/dust
  8. "ripgrep" # https://github.com/BurntSushi/ripgrep
  9. "jq" # https://github.com/stedolan/jq
  10. "bottom" # https://github.com/ClementTsang/bottom
  11. "procs" # https://github.com/dalance/procs
  12. "zoxide" # https://github.com/ajeetdsouza/zoxide
  13. "nvm" # https://github.com/nvm-sh/nvm
  14. "mongodb-community" # https://docs.mongodb.com/guides/
  15. "task" # https://taskwarrior.org/download/
  16. "tasksh" # https://gothenburgbitfactory.org/projects/tasksh.html
  17. "zsh-completion"
  18. )
  19. case $OSTYPE in darwin*)
  20. case $(which brew) in "brew not found")
  21. # https://brew.sh
  22. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  23. esac
  24. brew update
  25. brew tap mongodb/brew
  26. for tool in "${tools[@]}"
  27. do
  28. brew install "$tool"
  29. done
  30. if [ ! -d "~/.nvm" ]; then
  31. mkdir ~/.nvm
  32. fi
  33. # start mongo db
  34. brew services start mongodb/brew/mongodb-community
  35. https://ohmyz.sh/#install
  36. sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  37. esac