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.

71 lines
1.8 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
  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. ## move to a new computer
  52. ```sh
  53. cd
  54. alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add to .bashrc)
  55. source .bashrc
  56. echo "dotfiles" >> .gitignore
  57. git clone --bare https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git $HOME/dotfiles
  58. dot checkout
  59. cd dotfiles
  60. dot config --local status.showUntrackedFiles no
  61. ```
  62. ## pull repository
  63. ```sh
  64. dot clone https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git
  65. dot pull origin master
  66. ```