omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Bash or ZSH?

Open hyprhex opened this issue 3 months ago • 15 comments

What do you like to use more? Which one is more customized and updated?

hyprhex avatar Aug 27 '25 11:08 hyprhex

zsh allows me to install fish-like autosuggestions, which is the only thing that I actually miss on the bash + starship combo.

ferrao avatar Aug 27 '25 11:08 ferrao

You can get highlighting and autosuggestions just like zsh/fish with ble.sh, check it out!

ramtinJ95 avatar Aug 27 '25 11:08 ramtinJ95

Yeah, zsh is amazing. I wish @dhh could make it a default one with omzsh, or the powerlevel10k themes

hyprhex avatar Aug 27 '25 12:08 hyprhex

Despite the warnings of limited support, try this one out: https://github.com/romkatv/zsh4humans. Way better in performance than omyzsh and excellent default config. See this: I have bash in its standard starship config and zsh with zsh4humans as my new standard shell (changed just via chsh). tested on an old HP6200 with i7 2600 and SSD.

❯ hyperfine "bash -l"
Benchmark 1: bash -l
  Time (mean ± σ):      62.0 ms ±  12.9 ms    [User: 37.0 ms, System: 33.2 ms]
  Range (min … max):    55.5 ms … 121.4 ms    24 runs

  Warning: The first benchmarking run for this command was significantly slower than the rest (121.4 ms). This could be caused by (filesystem) caches that were not filled until after the first run. You should consider using the '--warmup' option to fill those caches before the actual benchmark. Alternatively, use the '--prepare' option to clear the caches before each timing run.

❯ hyperfine "zsh -l"
Benchmark 1: zsh -l
  Time (mean ± σ):       1.8 ms ±   0.5 ms    [User: 1.0 ms, System: 0.8 ms]
  Range (min … max):     0.8 ms …   3.6 ms    1153 runs

  Warning: Command took less than 5 ms to complete. Note that the results might be inaccurate because hyperfine can not calibrate the shell startup time much more precise than this limit. You can try to use the `-N`/`--shell=none` option to disable the shell completely.

lbonvarl avatar Aug 27 '25 14:08 lbonvarl

zsh allows me to install fish-like autosuggestions, which is the only thing that I actually miss on the bash + Starship combo.

I used Fish for a while, but about a month ago I migrated to Bash. Now I’m using ble.sh together with bash-completion, and I’m pretty satisfied with this setup.

diogoodev avatar Aug 27 '25 14:08 diogoodev

also wonder about this, coming from mac and zsh is the default shell.

fpigeonjr avatar Aug 28 '25 02:08 fpigeonjr

also wonder about this, coming from mac and that is the default shell.

Apple switched from Bash to Zsh because newer versions of Bash are licensed under GPLv3, which Apple avoids using due to its stricter licensing terms.

ctarx avatar Aug 28 '25 12:08 ctarx

Fish gang rise up 🐟

fowlie avatar Aug 28 '25 13:08 fowlie

I see we need ZSH as a default shell on Omarchy, too

hyprhex avatar Aug 28 '25 15:08 hyprhex

I see we need ZSH as a default shell on Omarchy, too

+1

kanishkdudeja avatar Aug 28 '25 19:08 kanishkdudeja

fish defaults are 🤌

vyrx-dev avatar Aug 29 '25 19:08 vyrx-dev

Yeah, zsh is amazing. I wish @dhh could make it a default one with omzsh, or the powerlevel10k themes

There is nothing I miss from omzsh due to starship ;)

ferrao avatar Aug 29 '25 23:08 ferrao

You can get highlighting and autosuggestions just like zsh/fish with ble.sh, check it out!

It seems to do much a lot of things that starship already does. I just want the auto-completion feature, but it totally overwrites the starship prompt which I love...

ferrao avatar Aug 29 '25 23:08 ferrao

You can get highlighting and autosuggestions just like zsh/fish with ble.sh, check it out!

It seems to do much a lot of things that starship already does. I just want the auto-completion feature, but it totally overwrites the starship prompt which I love...

You can simply disable everything you don’t want Disable features

I only use the auto-completion

diogoodev avatar Aug 30 '25 00:08 diogoodev

🐟

pjv avatar Sep 06 '25 13:09 pjv

Why not to ask the user at the installation what shell he wants? Like select an option between bash, zsh, fish ?

gevera avatar Sep 21 '25 22:09 gevera

Why not to ask the user at the installation what shell he wants? Like select an option between bash, zsh, fish ?

PR opened: #1907

vyrx-dev avatar Sep 23 '25 19:09 vyrx-dev

Since the proposed PR was closed, this can be closed as well @hyprhex ?

morgoth avatar Oct 24 '25 15:10 morgoth

https://github.com/omacom-io/omarchy-fish and https://github.com/omacom-io/omarchy-zsh serve as solutions for anyone who wishes to go this route.

ryanrhughes avatar Nov 04 '25 02:11 ryanrhughes

thanks for adding this @ryanrhughes! I was why we Auto-launch zsh shell if in interactive bash and Auto-launch fish shell if in interactive bash as opposed to using chsh? I'm coming from macOS where running chsh was common for switching the default shell

AlJohri avatar Nov 05 '25 20:11 AlJohri

thanks for adding this @ryanrhughes! I was why we Auto-launch zsh shell if in interactive bash and Auto-launch fish shell if in interactive bash as opposed to using chsh? I'm coming from macOS where running chsh was common for switching the default shell

#2271

vyrx-dev avatar Nov 06 '25 02:11 vyrx-dev