this post was submitted on 03 Aug 2025
22 points (100.0% liked)

linux4noobs

2626 readers
52 users here now

linux4noobs


Noob Friendly, Expert Enabling

Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.


Seeking Support?

Community Rules

founded 2 years ago
MODERATORS
 

I'm moving away from Windows (yay!) and need to bring a few features with me. Microsoft added this auto complete feature to PowerShell recently and I need something similar:

I found this package which is helpful, but it requires you to hit tab before you get a list of suggested commands: https://wiki.debian.org/Add%20Bash%20Completion

Do I need a different shell entirely? I'm using bash on Debian now.

top 10 comments
sorted by: hot top controversial new old
[–] ephos@programming.dev 2 points 4 hours ago* (last edited 4 hours ago)

You could be a mad lad like me and run PowerShell on Linux and as long as you have the PSReadline module you'll get this autocomplete. As others mentioned fish is also a great shell and I think with oh-my-bash and oh-my-zsh bash and zsh can do this as well.

I don't know if it has it but Nushell might also have something similar and feel a bit more natural coming from pwsh.

tldr; You can stick with pwsh or have tons of alternative options!

[–] BastingChemina@slrpnk.net 10 points 6 hours ago* (last edited 6 hours ago) (1 children)

Use fish as your command line shell, it's doing exactly that and way more.

It's so intuitive and useful that I forgot that it was not part of the standard shell.

https://fishshell.com/assets/img/screenshots/autosuggestion.webp

[–] splendoruranium 1 points 4 hours ago

It... it never occurred to me to use a different shell. Hm. Maybe I should.

[–] Petter1@discuss.tchncs.de 9 points 9 hours ago

I recommend starship in combination with fish

[–] A_norny_mousse@feddit.org 5 points 8 hours ago

Are you sure you cannot get used to the double-Tab?

It has everything you ask for and more; except for the visual in your screenshot.

If the answer really is No, you'll have to move away from bash for interactive shells.

[–] Botzo@lemmy.world 6 points 9 hours ago

I've not encountered this for bash.

The usual recommendation is to use Ctrl+r and do lookups when you need them.

Auto-suggestions are built into the fish shell and easily added to zsh. I haven't explored beyond those in a long time.

I hesitate to recommend changing shells for a newbie, but plenty of distros are using alternatives out of the box (usually zsh).

The typical journey for a newbie power user is a switch to zsh and an installation of oh-my-zsh, and then you can install zsh-autosuggestions as a plugin.

I wouldn't recommend fish shell to you yet, but only because you're new enough on your journey to be copy-pasting and fish isn't posix compliant which could throw you off occasionally. (This will probably bait some fish fanatics).

[–] BenPranklin@lemmy.world 11 points 10 hours ago

Definitely doable with zsh plugins. There are some options for bash like this but ive never used them

[–] taaz@biglemmowski.win 8 points 11 hours ago

Tab completion is the thing on linux, you can probably get something similar with zsh and it's plugins, maybe with fish too.

[–] magic_lobster_party@fedia.io 2 points 8 hours ago (1 children)

Is Ctrl+R good enough for you? I use it all the time.

[–] FizzyOrange@programming.dev 1 points 4 hours ago

Stock ctrl-r is kinda shit but you can make it a lot better with McFly or Atuin.