install 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/usr/bin/env bash
  2. # vim: set sw=2 ts=2 sts=2 et tw=80 fmr={{{,}}} fdl=0 fdm=marker:
  3. set -euo pipefail
  4. IFS=$'\n\t'
  5. # dotfiles installer for when `make` is not available.
  6. # XDG folder
  7. mkdir -p ${XDG_CONFIG_HOME:=$HOME/.config}
  8. # Git config
  9. git config --global color.ui true
  10. git config --global core.editor vim
  11. git config --global core.excludesfile ~/dotfiles/git/globalignore
  12. git config --global diff.mnemonicPrefix true
  13. echo "Git config done."
  14. # Bash
  15. ~/dotfiles/bin/linkup ~/dotfiles/shell/bash_profile ~/.bash_profile
  16. ~/dotfiles/bin/linkup ~/dotfiles/shell/bashrc ~/.bashrc
  17. # Zsh
  18. ~/dotfiles/bin/linkup ~/dotfiles/shell/env ~/.zshenv
  19. ~/dotfiles/bin/linkup ~/dotfiles/shell/zshrc ~/.zshrc
  20. # Tmux
  21. ~/dotfiles/bin/linkup ~/dotfiles/tmux/tmux.conf ~/.tmux.conf
  22. # Ack
  23. ~/dotfiles/bin/linkup ~/dotfiles/ack/ackrc ~/.ackrc
  24. # Vimperator
  25. ~/dotfiles/bin/linkup ~/dotfiles/vimperator ~/.vimperator
  26. ~/dotfiles/bin/linkup ~/dotfiles/vimperator/vimperatorrc ~/.vimperatorrc
  27. # Tridactyl
  28. ~/dotfiles/bin/linkup ~/dotfiles/tridactyl/tridactylrc ~/.tridactylrc
  29. # Vim
  30. ~/dotfiles/bin/linkup ~/dotfiles/vim ~/.vim
  31. ~/dotfiles/bin/linkup ~/dotfiles/vim/vimrc ~/.vimrc
  32. ~/dotfiles/bin/linkup ~/dotfiles/vim $XDG_CONFIG_HOME/nvim
  33. # Use barebones config to avoid vimrc errors on fresh dotfiles installs.
  34. vim -N -u ~/dotfiles/vim/plugins.vim +PlugClean! +PlugUpdate! +quitall!
  35. echo "Install complete!"