CodelyTV / dotly

🌚 Modular and easy to customize dotfiles framework
https://codely.com/cursos
MIT License
1.2k stars 116 forks source link

Problems migrating to dotly #55

Open frandieguez opened 3 years ago

frandieguez commented 3 years ago

Hi!

so far the migration to dotly of my dotfiles was quite straight forward. I really like the folder structure which makes it more easily readable. I already had almost all the configurations done in my dotfiles except some interesting findings like navi. Here you can find my dotfiles migrated to dotly in the develop branch https://github.com/frandieguez/.dots/tree/develop, compare them to the stable master branch which I've being installing on my work machine for quite some time. My desire is to replace my master branch when I see that the develop is stable and I solve some problems that I describe 👇

Problems found

  1. Lack of documentation

    • could you document how to add scripts to scripts/? I didn't realize that I have to give execution permissions in order show scripts in the dot command completion
    • From the codelyTV Pro course 😉, I've learned some tips but I need some documentation files that remind me of those opinionated rules you already though about.
  2. Extend the installer Ok, the dotly installer is really good to perform a fresh start, but once you have ported your dotfiles to dotly and upload them to github... could dotly generate an installer inside my dotfiles folder to ease future installations? To solve this I have created an installer https://github.com/frandieguez/.dots/blob/develop/installer but

    • Not sure if this is a bug but... in my installer I need to execute # zsh $INSTALL_PATH/modules/dotly/modules/zimfw/zimfw.zsh install in order to have the zimfw/init.sh file available. Could this be included inside the dotly self install
    • Is there anything already implemented to install external packages, i.e. in archlinux do something like ... grep -v '#' ./os/linux/archlinux-packages | strings | yay -S --noconfirm but I cannot execute it conditionally for archlinux, and have another one for mac...
    • I found something related with npm, composer, pip, gem package installer but what I can extend it? Is there any documentation to know what to put in the langs/ folder?
    • In the install script I need to execute some after install everything, i.e. I use vim with vim-plug to install plugins.
    • What if I want to share my configurations between my work machine and my personal machine? I call this profiles, and each profile can have it's own Git user/email, system packages to install... Is there any plan to perform this inside dotly?
  3. Common files

    • Where would you put common dotfiles inside the os folder? I have .agignore, .dircolors, .ctags, .tmux.conf... hat I would like to install in mac as well. For now I'm only installing them in Linux and symlinking them with the symlinks/config.yml but... Is there any plans to add a common folder to folder the structure of this use case?

As you can see I have tons of questions.... hope you find them useful. And congrats, dotly is quite useful.

gtrabanco commented 3 years ago

Hi!

so far the migration to dotly of my dotfiles was quite straight forward. I really like the folder structure which makes it more easily readable. I already had almost all the configurations done in my dotfiles except some interesting findings like navi. Here you can find my dotfiles migrated to dotly in the develop branch https://github.com/frandieguez/.dots/tree/develop, compare them to the stable master branch which I've being installing on my work machine for quite some time. My desire is to replace my master branch when I see that the develop is stable and I solve some problems that I describe 👇

Problems found

  1. Lack of documentation
  • could you document how to add scripts to scripts/? I didn't realize that I have to give execution permissions in order show scripts in the dot command completion
  • From the codelyTV Pro course 😉, I've learned some tips but I need some documentation files that remind me of those opinionated rules you already though about.
  1. Extend the installer Ok, the dotly installer is really good to perform a fresh start, but once you have ported your dotfiles to dotly and upload them to github... could dotly generate an installer inside my dotfiles folder to ease future installations? To solve this I have created an installer https://github.com/frandieguez/.dots/blob/develop/installer but
  • Not sure if this is a bug but... in my installer I need to execute # zsh $INSTALL_PATH/modules/dotly/modules/zimfw/zimfw.zsh install in order to have the zimfw/init.sh file available. Could this be included inside the dotly self install

You should have this installed already after executing dotly self install

  • Is there anything already implemented to install external packages, i.e. in archlinux do something like ... grep -v '#' ./os/linux/archlinux-packages | strings | yay -S --noconfirm but I cannot execute it conditionally for archlinux, and have another one for mac...

Yes you can, I will work on this.

  • I found something related with npm, composer, pip, gem package installer but what I can extend it? Is there any documentation to know what to put in the langs/ folder?

I have no reply for this I hope @rgomezcasas will do it

  • In the install script I need to execute some after install everything, i.e. I use vim with vim-plug to install plugins.
  • What if I want to share my configurations between my work machine and my personal machine? I call this profiles, and each profile can have it's own Git user/email, system packages to install... Is there any plan to perform this inside dotly?

Would be a great idea create a after-install folder where we can place our custom scripts to execute after install dotly.

  1. Common files
  • Where would you put common dotfiles inside the os folder? I have .agignore, .dircolors, .ctags, .tmux.conf... hat I would like to install in mac as well. For now I'm only installing them in Linux and symlinking them with the symlinks/config.yml but... Is there any plans to add a common folder to folder the structure of this use case?

Put it in your ~/.dotfiles/ and symlink them would be the best option in my opinion.

As you can see I have tons of questions.... hope you find them useful. And congrats, dotly is quite useful.

I have more 🤣 but I want to send some changes first.