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.

80 lines
2.0 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
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. update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/alacritty 20
  9. ```
  10. Evtl. für Terminfo im Repository unter Extras noch alacritty.info ziehen und
  11. ```sh
  12. tic -xe alacritty,alacritty-direct alacritty.info
  13. ```
  14. ## bspwm
  15. ## sxhkd
  16. ## zsh
  17. Install Hack Nerd Font from here https://github.com/ryanoasis/nerd-fonts/releases/
  18. ```sh
  19. unzip Hack*
  20. Fonts wählen, die man nutzen will und nach
  21. ~/.local/share/fonts/
  22. koopieren
  23. fc-cache -f -v
  24. fc-list | grep "Hack"
  25. ```
  26. to permamently switch shell to zsh:
  27. ```sh
  28. chsh -s $(which zsh)
  29. ```
  30. link configs to XDG_CONFIG_HOME
  31. ```sh
  32. ln -s /home/marc/.config/zsh/.zshenv /home/marc/.zshenv
  33. ln -s /home/marc/.config/zsh/.zshrc /home/marc/.zshrc
  34. ```
  35. # Initialization
  36. ```sh
  37. git init --bare $HOME/dotfiles
  38. alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add this to .zshenv or .bashrc)
  39. source .zshenv
  40. dot config --local status.showUntrackedFiles no
  41. git remote add origin https://gitea.cloudpshere.duckdns.org/marc/dotfiles.git
  42. git remote -v
  43. ```
  44. # Usage
  45. ## Add or edit files in repository
  46. ```sh
  47. dot add /path/to/file
  48. dot commit -m "some message"
  49. dot push
  50. ```
  51. ## add 3rd party repositories or update them
  52. ```sh
  53. #move to where you want to place the module
  54. # e.g. .config/zsh/plugins
  55. dot submodule add -b master https://github.com/PATH/TO.git
  56. #update submodules
  57. dot submodule update --remote
  58. ```
  59. ## move to a new computer
  60. ```sh
  61. cd
  62. alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add to .bashrc)
  63. source .bashrc
  64. echo "dotfiles" >> .gitignore
  65. git clone --bare https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git $HOME/dotfiles
  66. dot checkout
  67. cd dotfiles
  68. dot config --local status.showUntrackedFiles no
  69. ```
  70. ## pull repository
  71. ```sh
  72. dot clone https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git
  73. dot pull origin master
  74. ```