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.

69 lines
1.6 KiB

4 years ago
4 years ago
3 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. * gtk3-nocsd (to disable client side decorations / window bars)
  5. ## Prequisites
  6. edit /etc/pam.d/login
  7. WILL BE DEPRECATED SOME TIME!
  8. ```sh
  9. session required pam_env.so user_readenv=1
  10. ```
  11. ## Fonts
  12. * fonts-hack
  13. * fonts-powerline
  14. * IcoMoon Ultimate
  15. Installation of manual fonts:
  16. ```sh
  17. cp [FONT] ~/.local/share/fonts/
  18. fc-cache -f -v
  19. fc-list | grep "[FONT]"
  20. ```
  21. ## bspwm
  22. ## sxhkd
  23. ## zsh
  24. to permamently switch shell to zsh:
  25. ```sh
  26. chsh -s $(which zsh)
  27. ```
  28. # Initialization
  29. ```sh
  30. git init --bare $HOME/dotfiles
  31. alias dot='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME' (add this to .zshenv or .bashrc)
  32. source .zshenv
  33. dot config --local status.showUntrackedFiles no
  34. dot remote add origin https://gitea.cloudpshere.duckdns.org/marc/dotfiles.git
  35. dot remote -v
  36. ```
  37. # Usage
  38. ## Add or edit files in repository
  39. ```sh
  40. dot add /path/to/file
  41. dot commit -m "some message"
  42. dot push
  43. ```
  44. (on error about missing upstream branch: dot push -u origin master)
  45. ## add 3rd party repositories or update them
  46. ```sh
  47. #move to where you want to place the module
  48. # e.g. .config/zsh/plugins
  49. dot submodule add -b master https://github.com/PATH/TO.git
  50. #update submodules
  51. dot submodule update --remote
  52. ```
  53. ## move to a new computer
  54. ```sh
  55. cd
  56. alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add to .bashrc)
  57. source .bashrc
  58. echo "dotfiles" >> .gitignore
  59. git clone --bare https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git $HOME/dotfiles
  60. dot checkout
  61. cd dotfiles
  62. dot config --local status.showUntrackedFiles no
  63. ```