top | item 37272880

(no title)

dinckelman | 2 years ago

I've used fish for about 5 years now, and I don't really wanna go back. Out of the box, without any addons at all, it does everything my old zsh setups did, with a package manager and plugins. The only change I've made to it was spacefish (now starship.rs)

discuss

order

LibertyBeta|2 years ago

Same story here. But I recently moved to Tide prompt. It's pure fish and really amazingly fast.

stavros|2 years ago

You may also want to try z, and, err... I don't have my config with me, but I have a plugin that notifies me if a long-running background command finishes, which is really handy.

BeFlatXIII|2 years ago

What are your use cases for starship? It looks interesting but I think I'm missing the imagination necessary to use it to its full potential.

lolinder|2 years ago

I use starship with zsh. The biggest value is showing the current environment for any project without any config. Shows the active node version, Python venv, k8s context, all without having to think about it.

The other day an AWS command was rejected with a generic 403 error and at a glance I realized I'd forgotten to switch the default profile—without starship I suspect I would have spent a while troubleshooting my SSO login instead of just switching profiles.

Cu3PO42|2 years ago

I also use starship with barely any custom config (like fish). It shows me the environment I'm in for a project, including which versions of tools are active and which server I'm currently connected to (if any). And it looks pretty enough.

natebc|2 years ago

Big one for me was out of the box support for showing current kubernetes context. Very helpful if you work in multiple kubernetes clusters and in particular if you move around namespaces helping others.

Doable with configuration and either lots of work or plugins in other shells but the combo of fish + starship.rs offers a lot for little setup.

mdwalters|2 years ago

Not OP, but I use Starship with fish and bash, it shows me my git repo's status without having to run `git status`, which is very useful for me.

theshrike79|2 years ago

The use case for me is a prompt that Just Works. No need to hack $PS1 or anything else, I just install it and everything works.

There are some optional bits for more niche things (like laptop battery) you can enable with a config file, but it’s not necessary.

beebmam|2 years ago

Does it have support for reverse search yet? Not interested in auto complete.

bin_bash|2 years ago

you just push ctrl-r just like in zsh

boxed|2 years ago

type something, press arrow up

raverbashing|2 years ago

Did you have to convert your scripts to fish? Or is there an automated way?

bin_bash|2 years ago

Nobody (I know) that uses fish actually writes scripts in fish. Everyone writes scripts in bash for portability.

theshrike79|2 years ago

I’ve used fish for a half decade too, I still write my scripts in bash like everyone else. I want them to be standard and portable.

Longer scripts get the Python treatment or a Go application.

rgoulter|2 years ago

While there is a tool called `babelfish` that will automatically convert bash to fish, in practice it's rarely needed.

You can run bash scripts from fish.

For sourcing, often it makes sense to use direnv to automatically load variables. -- For "just source this one time", in the worst case you can run a bash shell, source that, then run a fish shell.

junon|2 years ago

You can always run .sh scripts