Giter Site home page Giter Site logo

Comments (3)

fsquillace avatar fsquillace commented on July 4, 2024

The purpose of pearl init is exactly to init any programs that can be connected to pearl regardless about which shell the user is using.

Anyway a better experience will be achieved once we get a lazy init approach: #112

Closing in favor of that.

from pearl.

Snogard avatar Snogard commented on July 4, 2024

i think you missed the point on this issue. the problem is that there is a .zshrc file but it's not in the location pearl thinks.
for example, normally a .zshrc is in $HOME/.zshrc (/home/user/.zshrc), but if i set $ZDOTDIR, then the .zshrc could be in a different folder. In my system i have $ZDOTDIR set as /home/user/.local/share/zsh so zsh will load this /home/user/.local/share/zsh/.zshrc instead of this home/user/.zshrc. As far as i know pearl init is ignoring this zsh configuration causing it to init to the wrong file.
For now i'm manually copying the generated line to the correct file.

from pearl.

fsquillace avatar fsquillace commented on July 4, 2024

I see what you meant now. Rather than copying I'd suggest to simply place a source ~/.zshrc instead.

Although it seems a simple issue it may be actually a tricky problem to solve (pearl init should occur every time the ZDOTDIR is changing). By allowing to dinamically change the config location it makes hard to init pearl into the right configuration. I'd not expect to solve this because is an edge case that most of the people should not encounter (so definitely low priority issue) and has simple workaround (namely, just using a source).

Reopening the issue just in case we can address it in the future.

from pearl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.