install 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. # Vim
  25. ~/dotfiles/bin/linkup ~/dotfiles/vim ~/.vim
  26. ~/dotfiles/bin/linkup ~/dotfiles/vim/vimrc ~/.vimrc
  27. ~/dotfiles/bin/linkup ~/dotfiles/vim $XDG_CONFIG_HOME/nvim
  28. # Use barebones config to avoid vimrc errors on fresh dotfiles installs.
  29. #vim -N -u ~/dotfiles/vim/plugins.vim +PlugClean! +PlugUpdate! +quitall!
  30. echo "Install complete!"