5 ms·
Try https://starship.rs https://starship.rs then. Starship gives you the same "drop in and go" experience but without the 200ms+ prompt lag. One curl -> one lin
by FrenchTouch42 9mo ago
Try https://starship.rs https://starship.rs then. Starship gives you the same "drop in and go" experience but without the 200ms+ prompt lag. One curl -> one line in your rc file, works on zsh/bash/fish/whatever.
Configuration is straightforward and easy imo: https://starship.rs/config/ https://starship.rs/config/
Give it a spin, I think you won't regret it.
- baby 9mo agoOh my zsh makes installing extension so easy, just edit .zshrc and add extract, fzf, z, etc. To the list of plugins
- shimman 9mo agoNever heard of this, looks pretty good. Are there any community themes based on starship like powerlevel9k/10k?
- sigwinch 9mo agoIt requires a nerd font.
- sandreas 9mo agostarship is great. I use it with a powerlevel10k fallback in my dotfiles for systems, starship is not installed yet to not break the shell entirely.
- CjHuber 9mo agoI'm so glad I switched to fish, I'd rather have genuinely good settings out of the box rather than endless configuration, and honestly it's much better out of the box than any configuration I've ever had. Only drawback is that it's not POSIX, no issue for me, but maybe for people who have a lot of muscle memory with bash.
- Hammershaft 9mo agoFish is just excellent out of the box. It's a little tragic how path dependent we are on flawed terminal experiences designed 40 years ago.
- Fnoord 9mo agoI've been using fish for nearly 10 years. First, there are some ways to make fish more compatible with bash. If you want to do some shell scripting in fish, or running other people's shell scripts (or commands) this may aid you since you wouldn't have to port them (or take less time to port them over). You can achieve this with a plugin system such as 'oh my fish' or 'fisher'. But, as always, it adds complexity (and bloat :P), you'll need it on every fish shell (including remote systems), etc. It is a bit akin to having nvim with plugins versus being able to use vi. Sometimes, you're going to need to be able to use the latter. Also, to people who recently adopted fish: fish has been made more and more compatible with bash throughout those years. FWIW, I use fish with starship these days.
- Zarel 9mo agoI'm surprised Starship is so popular. It's missing really basic powerlevel10k features like empty segments. If you look at some examples: https://starship.rs/presets/gruvbox-rainbow https://starship.rs/presets/gruvbox-rainbow You can see that when the segments are empty, they still appear as a 1-width segment, rather than entirely disappearing. It also makes you configure many things by hand. powerlevel10k has an interactive wizard that lets you design your prompt one option at a time (do you want a nerd font? do you want it one line or two? etc) but Starship makes you manually write escape codes if your preferences don't match one of the presets. No judgment, but I do wonder what people like about Starship that makes up for these things.
- dagi3d 9mo agoStarship allows empty segments, I in this specific case it's just how the preset/theme works as it uses the Unicode character as separator and it needs to set the background and foreground colors depending on which modules is surrounded by
- Zarel 9mo agoEvery preset with powerlevel10k-style segments don't support hiding empty segments. Look at Pastel Powerline, Tokyo Night, Gruvbox Rainbow, Catppucin Powerline... https://starship.rs/presets/#pastel-powerline https://starship.rs/presets/#pastel-powerline I tried making my own and the config TOML syntax isn't expressive enough to support hiding empty segments. You're right that it's the thing with the Unicode character as separator, which all the alternatives handle just fine: powerlevel10k, tide, oh-my-posh... it's just everyone seems to love Starship, and that's what confuses me.
- rofrol 9mo agoAlso oh-my-posh supports transient prompt and AFAIK starship.rs does not. "Transient prompt, when enabled, replaces the prompt with a simpler one to allow more screen real estate." https://ohmyposh.dev/docs/configuration/transient https://ohmyposh.dev/docs/configuration/transient Here is my config for oh-my-posh https://github.com/rofrol/dotfiles/blob/master/.config/oh-my-posh/themes/rofrol.omp.json https://github.com/rofrol/dotfiles/blob/master/.config/oh-my...
- mirzap 9mo agoI tried using Starship, and it’s clearly faster than Oh My Zsh, but my issue was that I relied on some useful Oh My Zsh features that I didn’t know how to replicate in Starship. One of these is history filtering - for example, when I type source and press the up arrow, I only see previously run source commands, which makes it easy to find what I’m looking for. I tried to get this working in Starship, but had no luck.
- coaksford 9mo agoI have never used Oh My Zsh, but I use Atuin to do this and it works excellently at that. You can even make it filter by what folder you're in and whether you want to search only this session or host (you can sync shell history across hosts). It never occurred to me that this is something I'd want from a shell prompt, which is what Starship is.
- seanhunter 9mo agoControl r. This is a zsh feature not a starship/oh my zsh feature
- vladvasiliu 9mo agomirzap was probably using some omz plugin to do that, so if starship fully replaced omz, that functionality went away, too.
- RHSeeger 9mo agoI think that's just a standard readline functionality. It's available on bash, out of the box.
- seanhunter 9mo agoAbsolutely and in zsh too, out of the box. It kind of blows my mind that people think they need all this additional bloatware for things which have always just worked (at least as far back as like 96 or so which is when I started using Linux) but it wasn’t new then. Wait till people learn they can use rlwrap to get the benefit of readline even in things like commandline sql clients, which often lack this.
- verdverm 9mo agoFrom what I can tell, this doesn't nearly fill the gap that OMZ occupies Nice history, command auto complete, and similar beyond just the looks, out of the box
- cdrnsf 9mo agoI'll second this. I've had a really pleasant experience using Starship across development environments.
- arendtio 9mo agoJust tried Starship, even though it wasn't the first time I'd heard about it. I would not say it is a 'drop-in and go' experience. Let me explain. After installing and adding it to my bashrc, I was wondering was those version numbers and cloud symbols meant. Turns out: Since NodeJS and Python were installed, it found a good idea to print the respective versions. I could not care less about those versions. The other part was that it thought that I would like to see my AWS region. Well, I mean, I have built something with AWS a few years back, and the config file for that still exists, but no, I don't want to see that region every time I open a shell. Finally, the default is to have the prompt in a new line. I think when you have a long prompt that makes sense, and it might also be a taste thing. However, the documentation has this example at the beginning about newlines: # Inserts a blank line between shell prompts add_newline = true So I thought `add_newline = false` should do the trick, but it didn't. Luckily, the AI (GPT-5.2) was pretty good at explaining and giving instructions for changing things. So after 30 minutes, everything was understood and configured to my liking. I like the result, but the default was pretty weird.
- rofrol 9mo agoAlso oh-my-posh supports transient prompt and AFAIK starship.rs does not. "Transient prompt, when enabled, replaces the prompt with a simpler one to allow more screen real estate." https://ohmyposh.dev/docs/configuration/transient https://ohmyposh.dev/docs/configuration/transient Here is my config for oh-my-posh https://github.com/rofrol/dotfiles/blob/master/.config/oh-my-posh/themes/rofrol.omp.json https://github.com/rofrol/dotfiles/blob/master/.config/oh-my...