Coder Social home page Coder Social logo

Comments (7)

romkatv avatar romkatv commented on July 24, 2024

That's how zsh works: it sources startup files from the home directory. When you log in as root, the home directory is /root.

If you like, you can configure root's zsh to source powerlevel10k. A better solution is to never log in as root.

from powerlevel10k.

p1r473 avatar p1r473 commented on July 24, 2024

Hey @romkatv I added source ~/.p10k.zsh to the .zshrc for both root and pi users and issue remains even after a new session

It seems to work when I do su pi but not su - pi

Why does su pi load p10k but not su - pi?

from powerlevel10k.

romkatv avatar romkatv commented on July 24, 2024

If you want to install powerlevel10k for root, you need to log in as root and then install powerlevel10k as usual. I don't recommend doing that but you can.

from powerlevel10k.

p1r473 avatar p1r473 commented on July 24, 2024

Its installed for both root and pi
The issue is it doesnt load when I log in as root and switch to pi
But if I log in as root or as Pi it works fine

from powerlevel10k.

romkatv avatar romkatv commented on July 24, 2024

If you want to activate powerlevel10k, you need to source it. Usually you source it from a zsh startup file. You can find the list of zsh startup files here: https://zsh.sourceforge.io/Intro/intro_3.html

from powerlevel10k.

romkatv avatar romkatv commented on July 24, 2024

I've seen your comment the first time you sent it. There is no need to delete and send it again.

I've nothing else to add to this issue.

from powerlevel10k.

p1r473 avatar p1r473 commented on July 24, 2024

Update: issue was due to the Pi user unable to access the Root user .zsh files due to file permissions. doh!

from powerlevel10k.

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.