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.

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