install 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/bin/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. # Prep tasks
  7. mkdir -p ~/.ssh ${XDG_CONFIG_HOME:=$HOME/.config}
  8. touch ~/.ssh/known_hosts
  9. echo "Preparing."
  10. # Initialise submodules
  11. (cd ~/dotfiles && git submodule sync && git submodule update --init)
  12. # Git config
  13. git config --global color.ui true
  14. git config --global core.editor vim
  15. git config --global core.excludesfile ~/dotfiles/git/globalignore
  16. git config --global diff.mnemonicPrefix true
  17. echo "Git config done."
  18. # Zsh
  19. ~/dotfiles/bin/linkup ~/dotfiles/zsh/zshenv ~/.zshenv
  20. ~/dotfiles/bin/linkup ~/dotfiles/zsh/zshrc ~/.zshrc
  21. # Tmux
  22. ~/dotfiles/bin/linkup ~/dotfiles/tmux/tmux.conf ~/.tmux.conf
  23. # Ack
  24. ~/dotfiles/bin/linkup ~/dotfiles/ack/ackrc ~/.ackrc
  25. # Vimperator
  26. ~/dotfiles/bin/linkup ~/dotfiles/vimperator ~/.vimperator
  27. ~/dotfiles/bin/linkup ~/dotfiles/vimperator/vimperatorrc ~/.vimperatorrc
  28. # Vim
  29. ~/dotfiles/bin/linkup ~/dotfiles/vim ~/.vim
  30. ~/dotfiles/bin/linkup ~/dotfiles/vim/vimrc ~/.vimrc
  31. ~/dotfiles/bin/linkup ~/dotfiles/vim $XDG_CONFIG_HOME/nvim
  32. vim +PlugClean! +PlugUpdate! +quitall!
  33. echo "Install complete!"