Earlier quoted context omitted.
I literally use just PS1='$ '. `git status` to know git stuff. `pwd` for the current working directory, etc I also don't use aliases like `gs` or `..` One good thing about having a very minimal setup is that you feel at home anywhere. It wasn't always like this. I used many, many prompts and shell tools over the decades. The only tool that stood the test of time is tmux.
Same here, I also find that aliases for speed introduce unnecessary complexity and mental overhead later on. It's not much, and for other people it doesn't matter or they have a different preference, but that's what I prefer. Sort of contrary to that I really enjoy the maximalist shells. A computer should be fun to use!
Starship: A minimal, fast, and customizable prompt for any shell
131–140 of 216 posts
Re: Starship: A minimal, fast, and customizable prompt for any shell
#132I'm a long time user of https://github.com/ohmybash/oh-my-bash It would be nice to have a comparison and reasons to change from popular tools.
Came here to ask the same. Long time ohmyzsh user, and wondering what new features / benefits Starship has.
Most shells can probably do everything this can as well and if you're already familiar with the archaic syntax there is probably limited use for you.
For an idea, here is my current config https://github.com/LukasKnuth/dotfiles/blob/main/zsh/.config...
Re: Starship: A minimal, fast, and customizable prompt for any shell
#133Earlier quoted context omitted.
For personal workstation, the current directory is enough. Maybe I change the color based the status of the last command. That’s pretty much the only information I need before entering any command. Everything else can be accessed when I really need it.
You don't need to know what branch you're on before running commands? I cant tell you the number of times ive been on the wrong branch executing stuff.
Re: Starship: A minimal, fast, and customizable prompt for any shell
#134Earlier quoted context omitted.
I'm highly aware of which branch I'm on. Because it's because I don't use any scripts or automation that switches branches; I only ever switch branches manually so I have that awareness.
How well does this work when you work on multiple repos with longer pauses inbetween? And the Branch is also an unintrusive reminder that you are in a path under versioncontrol.
Re: Starship: A minimal, fast, and customizable prompt for any shell
#135I would be very curious to see an age demographic chart of people using e.g. Starship. Personally, over time, I have stopped caring too much about prompt customization. I concluded that, no matter how carefully you curate your prompt, 90% of the information shown will be irrelevant 90% of the time*. After a while, your brain will start perceiving this as visual clutter and filter it out, to the point you may even for…
Re: Starship: A minimal, fast, and customizable prompt for any shell
#136Earlier quoted context omitted.
I'm highly aware of which branch I'm on. Because it's because I don't use any scripts or automation that switches branches; I only ever switch branches manually so I have that awareness.
I only switch branches manually too, but I work in many repos and come back to stuff after days sometimes.
For example, I don’t expect running scripts/build.sh to modify tracked files in the repo. Seeing part of the prompt go from “” to “?2!3” (two untracked, three changed files) makes that glaringly obvious.
Re: Starship: A minimal, fast, and customizable prompt for any shell
#137Earlier quoted context omitted.
My experience of Starship on Windows has been great. I'm using the Windows native builds of both Starship and git (both installed/updated via winget these days) in PowerShell. I try to avoid emulation layers like MSYS2, as much as I'm able. Also, yes, if git hangs on git show/git diff that sounds like an antivirus problem or a dying hard drive or the first one causing the other one.
Or just a really big git repo. Starship includes a timings command, on linux (with an annoying antivirus meddling) this is what I see against one directory: git_status - 6ms - "[!?] " directory - 4ms - " " python - 3ms - "via v3.12.9 (.venv) " character - in " If I go in to my checked out version of the linux kernel, probably the biggest git project I've got kicking around: git_status - 115ms - "" directory - 4ms - "…
Re: Starship: A minimal, fast, and customizable prompt for any shell
#138Earlier quoted context omitted.
Why the timestamps are that important? Honestly asking. You can always time your commands with "time".
When you’re debugging, especially a complex system, especially during an outage or postmortem, understanding when your commands executed relative to when your log lines appeared is really helpful.
Something like
export HISTFILESIZE=
export HISTSIZE=
export HISTTIMEFORMAT="[%F %T] "
shopt -s histappend
really ought to be default in bash.It's not as clear why you need it in the interactive prompt.
Re: Starship: A minimal, fast, and customizable prompt for any shell
#139I would be very curious to see an age demographic chart of people using e.g. Starship. Personally, over time, I have stopped caring too much about prompt customization. I concluded that, no matter how carefully you curate your prompt, 90% of the information shown will be irrelevant 90% of the time*. After a while, your brain will start perceiving this as visual clutter and filter it out, to the point you may even for…
I think we can generalize this into the overall computing environment. When I was younger, I was that kid building my whole OS from source via Gentoo, with all the CPU-specific flags and optimizations. I had a very detailed window manager configuration (fwvm2 maybe?), a .bashrc full of aliases and functions for every occasion. And yes, a custom prompt. I think these kinds of over-optimization rabbit holes are a good…
Re: Starship: A minimal, fast, and customizable prompt for any shell
#140It has support for fish shell... I'll pass.