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.

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