I just thought this tutorial could genuinely be useful to some fellow ricers.

It explains not only the git status part of making a pure zsh prompt that looks like this:

You are viewing a single thread.
View all comments View context
3 points

Yes. But p10k has many downsides:

  • requires using oh my ZSH, which alone is quite bad because of how much slower it makes the shell.
  • is a piece of software you’ll have to either install on each new device or have the software in your dotfiles. Bad practice. I very much prefer having no additional dependencies or overhead, plus the way I do it I can do whatever I want without the limitations of a prompt made by someone else, for which I’d have to dig in a lot of documentation. Compared to this, I only spent half an hour making a prompt exactly how I like, which doesn’t add overhead and doesn’t require a third party piece of software which I’d have to install on every new device.
permalink
report
parent
reply
6 points

p10k doesn’t require omz. You can install it by itself, the instructions are right there on the Github repo.

On a new computer, I: git clone my dotfiles repo. Run the install script which symlinks all the relevant files, clones any needed repos like asdf, fzf, p10k, sources the .zshenv and .zshrc, runs asdf installs for my required tools, installs homebrew if on macOS, runs brew bundle to install everything else.

Homebrew takes the longest. The rest is done in a few seconds.

permalink
report
parent
reply
Deleted by creator
permalink
report
parent
reply
1 point

Yes, nix is fantastic and I need to figure out the setup vs my current one. On a new system, would it be more straightforward to clone my repo, and then use nix, or just keep what I have? More of a rhetorical question there, I need to compare nix and homebrew based methods again (last time was like 2 years ago)

There’s also the issue of nix darwin creating a partition, which the enterprise security department didn’t like me to do last time. Which is ridiculous, I agree! Plus homebrew is “approved” while nix is an unknown to our enterprise IT. They often block stuff in the name of security, I’d hate for nix to get halfway through setup and break.

permalink
report
parent
reply

Unixporn

!unixporn@lemmy.ml

Create post

Unixporn

Submit screenshots of all your *NIX desktops, themes, and nifty configurations, or submit anything else that will make themers happy. Maybe a server running on an Amiga, or a Thinkpad signed by Bjarne Stroustrup? Show the world how pretty your computer can be!

Rules

  1. Post On-Topic
  2. No Defaults
  3. Busy Screenshots
  4. Use High-Quality Images
  5. Include a Details Comment
  6. No NSFW
  7. No Racism or use of racist terms

Community stats

  • 468

    Monthly active users

  • 705

    Posts

  • 5.8K

    Comments