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.

66 lines
1.4 KiB

5 years ago
5 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
4 years ago
5 years ago
5 years ago
5 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. Installation of manual fonts:
  9. ```sh
  10. cp [FONT] ~/.local/share/fonts/
  11. fc-cache -f -v
  12. fc-list | grep "[FONT]"
  13. ```
  14. ## bspwm
  15. ## sxhkd
  16. ## zsh
  17. to permamently switch shell to zsh:
  18. ```sh
  19. chsh -s $(which zsh)
  20. ```
  21. # Initialization
  22. ```sh
  23. git init --bare $HOME/dotfiles
  24. alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add this to .zshenv or .bashrc)
  25. source .zshenv
  26. dot config --local status.showUntrackedFiles no
  27. git remote add origin https://gitea.cloudpshere.duckdns.org/marc/dotfiles.git
  28. git remote -v
  29. ```
  30. # Usage
  31. ## Add or edit files in repository
  32. ```sh
  33. dot add /path/to/file
  34. dot commit -m "some message"
  35. dot push
  36. ```
  37. ## add 3rd party repositories or update them
  38. ```sh
  39. #move to where you want to place the module
  40. # e.g. .config/zsh/plugins
  41. dot submodule add -b master https://github.com/PATH/TO.git
  42. #update submodules
  43. dot submodule update --remote
  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. ```