Dotfiles for my tiling window manager + terminal workflow.
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.

27 lines
663 B

6 years ago
6 years ago
  1. #!/bin/zsh
  2. # link files {{{ #
  3. # Get directory variables from script.
  4. . ../scripts/dirs.sh
  5. # List of dotfiles I want to link to system.
  6. dotfiles=(bashrc gitconfig inputrc imwheelrc vimrc xinitrc Xmodmap Xresources zshrc)
  7. # cd $dot_dir
  8. for dotfile in $dotfiles; do
  9. # Remove system dotfile.
  10. rm ~/."$dotfile"
  11. # Link dotfile in repository to system dotfile.
  12. ln -s "$dot_dir"/"$dotfile" ~/."$dotfile"
  13. done
  14. # }}} link files #
  15. # setup nvim config {{{ #
  16. orig_file="$sys_config_dir"/nvim/init.vim
  17. # Remove system dotfile.
  18. rm "$orig_file"
  19. # Link dotfile in repository to system dotfile.
  20. ln -s "$dot_dir"/nvim "$orig_file"
  21. # }}} setup nvim config #