You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

justfile 1019B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. cfg_zshrc := "${PWD}/.zshrc"
  2. home_zshrc := "${HOME}/.zshrc"
  3. cfg_gitconfig := "${PWD}/.gitconfig"
  4. home_gitconfig := "${HOME}/.gitconfig"
  5. cfg_aws := "${PWD}/.aws"
  6. home_aws := "${HOME}/.aws"
  7. default: brew config-zsh config-git config-aws
  8. @brew +opts='': _install_homebrew_if_missing
  9. brew bundle {{opts}}
  10. @config-zsh: _install_ohmyzsh_if_missing
  11. rm -fr {{home_zshrc}}
  12. ln -s {{cfg_zshrc}} {{home_zshrc}}
  13. @config-git:
  14. rm -fr {{home_gitconfig}}
  15. ln -s {{cfg_gitconfig}} {{home_gitconfig}}
  16. @config-aws:
  17. rm -fr {{home_aws}}
  18. ln -s {{cfg_aws}} {{home_aws}}
  19. _install_ohmyzsh_if_missing:
  20. #!/usr/bin/env bash
  21. if [ ! -d "${HOME}/.oh-my-zsh" ]; then
  22. sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  23. fi
  24. _install_homebrew_if_missing:
  25. #!/usr/bin/env bash
  26. if ! type brew >/dev/null 2>&1; then
  27. /usr/bin/env bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  28. fi
  29. # Local Variables:
  30. # mode: makefile
  31. # End:
  32. # vim: set ft=make :