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.

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