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.

64 lines
1.5 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
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. Install Hack Nerd Font from here [https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/Hack]
  12. ```sh
  13. unzip Hack*
  14. cd ttf
  15. cp ./* ~/.local/share/fonts/
  16. fc-cache -f -v
  17. fc-list | grep "Hack"
  18. ```
  19. to permamently switch shell to zsh:
  20. ```sh
  21. chsh -s $(which zsh)
  22. ```
  23. link configs to XDG_CONFIG_HOME
  24. ```sh
  25. ln -s /home/marc/.config/zsh/.zshenv /home/marc/.zshenv
  26. ln -s /home/marc/.config/zsh/.zshrc /home/marc/.zshrc
  27. ```
  28. # Initialization
  29. ```sh
  30. git init --bare $HOME/dotfiles
  31. alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add this to .zshenv or .bashrc)
  32. source .zshenv
  33. dot config --local status.showUntrackedFiles no
  34. git remote add origin https://gitea.cloudpshere.duckdns.org/marc/dotfiles.git
  35. git remote -v
  36. ```
  37. # Usage
  38. ## Add or edit files in repository
  39. ```sh
  40. dot add /path/to/file
  41. dot commit -m "some message"
  42. dot push
  43. ```
  44. ## move to a new computer
  45. ```sh
  46. cd
  47. alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add to .bashrc)
  48. source .bashrc
  49. echo "dotfiles" >> .gitignore
  50. git clone --bare https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git $HOME/dotfiles
  51. dot checkout
  52. cd dotfiles
  53. dot config --local status.showUntrackedFiles no
  54. ```
  55. ## pull repository
  56. ```sh
  57. dot clone https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git
  58. dot pull origin master
  59. ```