Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Filesystem layout #8

Closed
Aiz0 opened this issue Mar 24, 2021 · 4 comments
Closed

New Filesystem layout #8

Aiz0 opened this issue Mar 24, 2021 · 4 comments

Comments

@Aiz0
Copy link
Owner

Aiz0 commented Mar 24, 2021

Current layout

HOME
├ bin  //executables
├ etc  //config
├ src  //source code to build
├ tmp  //temporary files (downloads)
├ usr  //user files
└ var  //.local + .cache
  ├ cache
  ├ lib
  ├ log
  └ share

There is another src/ directory in ~/usr/ for projects i work on myself. My startpage for example. I like having this split.

Proposed new layout

HOME
├ tmp 
├ usr 
└ local  //Subject to change
  ├ bin
  ├ etc
  ├ lib
  ├ share
  ├ src
  └ var
      ├ cache
      └ log

This layout would reduce the number of directories in ~/ by 3.
It would also allow me to move git repository top level directory to local/ meaning I can solve #3. This ignores the ~/.pam_environment file which is the only file residing in ~/ that is tracked.

Since .pam_environement is deprecated and will be removed in the future I will have to switch to something else anyways.

I'm not a big fan of calling the directory local though. I could call it .local so it doesn't show it with ls but the purpose of this repository is to avoid dotfiles as much as possible.

@Aiz0
Copy link
Owner Author

Aiz0 commented Feb 14, 2024

think I'm finally gonna do this and I'm gonna use this layout

HOME
├ temp // usually downloads
├ user // all other user files
└ local // not hidden
  ├ bin // scripts and user installed binaries
  ├ config // XDG_CONFIG_HOME
  ├ share // XDG_DATA_HOME
  ├ src // source code to be built only! edited stuff should go into user src.
  └ var // logs and cache
      ├ cache
      └ log

@Aiz0
Copy link
Owner Author

Aiz0 commented Feb 14, 2024

If I do this I can probably stop using dotbare/git bare since everything to track will be in the local dir...

@Aiz0
Copy link
Owner Author

Aiz0 commented Feb 14, 2024

config has been moved over

@Aiz0
Copy link
Owner Author

Aiz0 commented Feb 14, 2024

everything has been moved over. closing for now.

@Aiz0 Aiz0 closed this as completed Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant