Aiz0 / dotless

My dotless files
2 stars 0 forks source link

New Filesystem layout #8

Closed Aiz0 closed 9 months ago

Aiz0 commented 3 years ago

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 commented 9 months ago

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 commented 9 months ago

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

Aiz0 commented 9 months ago

config has been moved over

Aiz0 commented 9 months ago

everything has been moved over. closing for now.