Simple image host.
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.

setup.sh 358B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. check_exists()
  3. {
  4. which "$1" 1> /dev/null
  5. if [ "$?" -ne 0 ]; then
  6. echo "Missing command: ${1}. install it."
  7. exit 1
  8. fi
  9. }
  10. check_exists "zsh"
  11. check_exists "i3"
  12. check_exists "tmux"
  13. check_exists "vim"
  14. check_exists "compton"
  15. echo "copying dotfiles..."
  16. cd dotfiles
  17. for f in *; do
  18. rm -r "$HOME/.$f"
  19. cp -r "$f" "$HOME/.$f"
  20. done
  21. cd ..
  22. echo "done"