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.

72 lines
1.6 KiB

5 years ago
5 years ago
4 years ago
4 years ago
3 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. 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. ## add 3rd party repositories or update them
  45. ```sh
  46. #move to where you want to place the module
  47. # e.g. .config/zsh/plugins
  48. dot submodule add -b master https://github.com/PATH/TO.git
  49. #update submodules
  50. dot submodule update --remote
  51. ```
  52. ## move to a new computer
  53. ```sh
  54. cd
  55. alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add to .bashrc)
  56. source .bashrc
  57. echo "dotfiles" >> .gitignore
  58. git clone --bare https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git $HOME/dotfiles
  59. dot checkout
  60. cd dotfiles
  61. dot config --local status.showUntrackedFiles no
  62. ```
  63. ## pull repository
  64. ```sh
  65. dot clone https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git
  66. dot pull origin master
  67. ```