You are not logged in.

#1 2021-01-30 22:17:33

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,737

Starship prompt?

Any love for starship prompt? I think it may provide an interesting default (together with some pre installed nerd fonts and properly configured zsh).

https://starship.rs/

wdeGCuJ.png

Testing this for more that 15 minutes now, and it does some interesting things, for example when I left my vim in the bg, prompt changes from '>' to '+>'.

Last edited by brontosaurusrex (2021-01-30 22:20:26)

Offline

#2 2021-01-31 00:30:59

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,032
Website

Re: Starship prompt?

Very cool. Do you mean we should consider adding it to the default BL setup?

-edit- Super easy to install via curl, add one line to the bottom of .bashrc, reboot.

This is the first time I've dropped to TTY in a long time, and it was just to test this shell. Very pretty. For my own user-case scenario (layman), I'll almost never see it.

Last edited by hhh (2021-01-31 00:45:29)


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

#3 2021-01-31 00:51:37

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,032
Website

Re: Starship prompt?

^ *opens user terminal in the GUI session, giant bell hits hhh in his giant, stupid head, much clanging ensues*

Oh, f**k me. I'll see it all the time. Nice proposal, I'm a fan.

KS07x15t.png


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

#4 2021-01-31 01:17:53

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
Website

Re: Starship prompt?

There seems to be a debian package on the way, though still lacking some dependencies: https://packages.debian.org/bullseye/li … derive-dev

This is combined with a suggestion to make zsh the default shell? Bash has a lot of followers...


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#5 2021-01-31 04:41:33

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,032
Website

Re: Starship prompt?

Easy user setup, so not necessary for BL default. Still, sah-WEET!

JHojMjxt.png

Thanks for posting this, fun stuff!

Last edited by hhh (2021-01-31 04:42:34)


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

#6 2021-01-31 05:35:36

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
Website

Re: Starship prompt?

^yeh that is kind of cute.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#7 2021-01-31 08:12:45

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,737

Re: Starship prompt?

Proposal would be zsh by default (with zsh-autosuggestions && autocompletion) + maybe starship prompt (more testing) for both interactive bash and zsh. There is also fzf (in repos), which I rarely use in practice, but it is an eyecandy.

In any case, the "best" and "easiest" possible terminal experience, probably best to be completely independent (and instalable) from whatever Bunsen gui parts, with good/short docs (targeted on how to do things) would be a worthy little project.

---

edit: Testing starship a little further, so far my .config/starship.toml is don't show the 'took' thing if it took less than 10 seconds.

[cmd_duration]
min_time = 10000

test

pi in raspberrypi in ~
❯ sleep 10

pi in raspberrypi in ~ took 10s
❯ sleep 9

pi in raspberrypi in ~
❯

Also another observation is that prompt gets a little more talkative when it detects over-ssh usage (now showing 'user in host in folder', instead of just 'folder')

---

Also while looking at this rust attack https://zaiste.net/posts/shell-commands-rust/, it turns out that fd-find is in Buster repos and one apt install and alias later, I have a neat find replacement.

~
❯ fd -H starship
.cache/starship
.config/starship.toml

Bat as cat replacement looks neat as well.

---

And trying to write up a little max for min type of terminal tutorial
https://brontosaurusrex.github.io/2021/ … imum-work/

Last edited by brontosaurusrex (2021-01-31 16:26:18)

Offline

#8 2021-02-01 09:42:05

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,737

Re: Starship prompt?

Ahhh, see a little lock when the starship knows I have to be root to edit files in this dir? Indeed cute.
cute

Last edited by brontosaurusrex (2021-02-01 09:44:14)

Offline

#9 2021-02-02 01:54:39

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,032
Website

Re: Starship prompt?

Very!


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

Board footer

Powered by FluxBB