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.

29 lines
763 B

  1. # dotfiles
  2. dot_dir=~/linux-config
  3. dotfiles="bashrc gitconfig inputrc vimrc"
  4. cd $dot_dir
  5. for dotfile in $dotfiles; do
  6. rm ~/.$dotfile
  7. ln -s $dot_dir/.$dotfile ~/.$dotfile
  8. done
  9. # config files
  10. dot_dir=~/linux-config
  11. config_dir=~/.config
  12. config_files="neofetch/config.conf i3/config"
  13. for file in $config_files; do
  14. rm $config_dir/$file
  15. ln -s $dot_dir/$(echo $file | cut -d'/' -f 1).conf $config_dir/$file
  16. # echo $(echo $file | cut -d'/' -f 1)
  17. done
  18. # old code
  19. # neofetch_dir=~/.config/neofetch
  20. # ln -s $dot_dir/neofetch.conf $config_dir/neofetch/config.conf
  21. # terminator
  22. dot_dir=~/linux-config
  23. config_dir=~/.config/
  24. # term_dir=~/.config/terminator
  25. pc=$(hostname)
  26. rm "$dot_dir"/"$pc"-terminator
  27. cp "$config_dir"/terminator/config $dot_dir/"$pc"-terminator