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

Change the OMZ layout #11065

Open
MenacingPerson opened this issue Jul 24, 2022 · 0 comments
Open

Change the OMZ layout #11065

MenacingPerson opened this issue Jul 24, 2022 · 0 comments
Labels
Feature New feature or request

Comments

@MenacingPerson
Copy link

If the feature request is for a plugin or theme, specify it here.

No response

If the feature solves a problem you have, specify it here.

OMZ dirties up my home directory

Describe the proposed feature.

The OMZ repo is moved to ~/.config/zsh, in the home directory there is a .zshenv file:

export ZDOTDIR=~/.config/zsh

The user can move the folder and change the location.

This way, the home directory remains clean. The .zshrc file can also be reduced by 90% (It can just execute all the .zsh files in $ZDOTDIR/custom):

# .config/zsh/.zshrc
#!/usr/bin/env zsh

#!/usr/bin/env zsh

for i in $ZDOTDIR/custom/*; do
    if [[ -x "$i" ]]
    then
        . "$i"
    fi
done

Then there is a $ZDOTDIR/state/zsh_history file with zsh history which is ignored by git, etc, etc...

Describe alternatives you've considered

No response

Additional context

No response

Related Issues

No response

@MenacingPerson MenacingPerson added the Feature New feature or request label Jul 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant