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

Docs: Remove Bloat in the Plain Install #949

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

redkittty
Copy link

Hello,
The way you install the plugin on a plain .zshrc is quite simple, these are just some changes to debloat the .zshrc

The first change is to replace ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh with ~/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

This is due to the fact that with ./ , zsh was looking inside the current folder which would often introduce bloat as the folders outside of home were stored and if I were to go into a different folder and open a new terminal tab, well then that folder all of the sudden has the plugin folder wasting disk space.

With ~/ , it fixes that issue because it tells zsh to look in the home folder and then to go into the plugin directory, this has less bloat because if I am in another folder, it doesn't make a folder for the plugin there as now it doesn't have to as zsh now knows it is in the home directory.

The other change is to the echo command after git clone, I put optional there because if you plain install it, you don't need that command and it ends up being bloat. The reason I added the Optional tag is because it might be needed for a specific plugin manager even though the section is titled: In your .zshrc.

- replaced ./ with ~/ to reduce bloat, this is because ./ would look in the current folder while ~/ looks in the home folder
- Made the command after git clone optional due to not needing it to install without a plugin manager
@redkittty redkittty changed the title Remove Bloat in the Plain Install Docs: Remove Bloat in the Plain Install Mar 22, 2024
@danielshahaf
Copy link
Member

danielshahaf commented Mar 28, 2024 via email

@redkittty
Copy link
Author

oh I see, I just did this because I often git clone in the home directory, so if I went to another directory, It would make a directory inside that other directory I was working in. I was just confused because in bold text it said, In your ~.zshrc. You could maybe bold the text for doing the source inside the current shell

@danielshahaf
Copy link
Member

danielshahaf commented Apr 2, 2024 via email

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

Successfully merging this pull request may close these issues.

None yet

2 participants