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.

56 lines
1.3 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. Source: [https://www.atlassian.com/git/tutorials/dotfiles]
  2. # Required tools
  3. ## Alacritty
  4. Download from here: [https://github.com/jwilm/alacritty/releases]
  5. ```sh
  6. dpkg -i Alacri*
  7. ```
  8. ## bspwm
  9. ## sxhkd
  10. ## zsh
  11. TODO needs some font
  12. to permamently switch shell to zsh:
  13. ```sh
  14. chsh -s $(which zsh)
  15. ```
  16. link configs to XDG_CONFIG_HOME
  17. ```sh
  18. ln -s /home/marc/.config/zsh/.zshenv /home/marc/.zshenv
  19. ln -s /home/marc/.config/zsh/.zshrc /home/marc/.zshrc
  20. ```
  21. # Initialization
  22. ```sh
  23. git init --bare $HOME/dotfiles
  24. alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add this to .zshenv or .bashrc)
  25. source .zshenv
  26. dot config --local status.showUntrackedFiles no
  27. git remote add origin https://gitea.cloudpshere.duckdns.org/marc/dotfiles.git
  28. git remote -v
  29. ```
  30. # Usage
  31. ## Add or edit files in repository
  32. ```sh
  33. dot add /path/to/file
  34. dot commit -m "some message"
  35. dot push
  36. ```
  37. ## move to a new computer
  38. ```sh
  39. cd
  40. alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add to .bashrc)
  41. source .bashrc
  42. echo "dotfiles" >> .gitignore
  43. git clone --bare https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git $HOME/dotfiles
  44. dot checkout
  45. cd dotfiles
  46. dot config --local status.showUntrackedFiles no
  47. ```
  48. ## pull repository
  49. ```sh
  50. dot clone https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git
  51. dot pull origin master
  52. ```