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.

51 lines
1.0 KiB

  1. SHELL:=/bin/bash
  2. .DEFAULT_GOAL:=all
  3. profile: clean
  4. @echo "[ bash ] Creating nix-profile.sh"
  5. @cat .bash_profile .bash_aliases \
  6. | sed '/# shellcheck /d' > nix-profile.sh \
  7. && chmod +x nix-profile.sh
  8. bashrc:
  9. @echo "[ bash ] Installing .bashrc"
  10. @cat .bashrc | sed '/# shellcheck /d' > ~/.bashrc
  11. bash_profile: bashrc
  12. @echo "[ bash ] Installing .bash_profile"
  13. @cat .bash_profile | sed '/# shellcheck /d' > ~/.bash_profile
  14. bash_aliases: bash_profile
  15. @echo "[ bash ] Installing .bash_aliases"
  16. @cat .bash_aliases | sed '/# shellcheck /d' > ~/.bash_aliases
  17. bash: bash_profile bash_aliases
  18. inputrc:
  19. @echo "[ inputrc ] Installing .inputrc"
  20. @cat .inputrc > ~/.inputrc
  21. gitconfig:
  22. @echo "[ git ] Installing .gitconfig"
  23. @cat .gitconfig > ~/.gitconfig
  24. gitignore:
  25. @echo "[ git ] Installing .gitignore"
  26. @cat .gitignore > ~/.gitignore
  27. git: gitconfig gitignore
  28. vimrc:
  29. @echo "[ vim ] Installing .vimrc"
  30. @cat .vimrc > ~/.vimrc
  31. vim: vimrc
  32. install: bash inputrc git vim
  33. all: clean install profile
  34. clean:
  35. @echo "[ clean ] Cleaning up"
  36. @rm -f nix-profile.sh