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.

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