You are not logged in.

#1 2022-02-25 17:54:37

fastrespawn
Member
Registered: 2022-02-24
Posts: 8

TAB not completing commands on ArchLinux?

On Ubuntu, I used to type something like "sudo apt remove gno" and press "TAB", which would list everything that matched gno in the name, like any gnome app
The same thing while using pacman or other commands in Arch Linux doesn't work, only when trying to find directories TAB completion work

Is it possible to configure this ?

Offline

#2 2022-02-25 18:01:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,491
Website

Re: TAB not completing commands on ArchLinux?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2022-02-25 18:45:09

ishaanbhimwal
Member
Registered: 2022-01-21
Posts: 48
Website

Re: TAB not completing commands on ArchLinux?

Install the "bash-completion" package and add this line to bottom of your "~/.bashrc" file:

[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion

Offline

#4 2022-02-26 10:31:47

coxe87b
Member
From: Canberra
Registered: 2019-12-08
Posts: 92

Re: TAB not completing commands on ArchLinux?

There is nothing wrong with the previous answers, but just to add some extra info;

Bash is the default, so bash-completions is the logical answer, but it is shell specific. Therefore you would install zsh-completions if you use zsh as your shell, etc.

I believe the Arch live USB installer still uses zsh as the shell, so if testing there, you may have a different result.

You can list your installed shells by typing;

 chsh -l 

Desktop: Dual boot {Arch & Windows 11}  |  Hyprland  |  AMD Ryzen 5700X  |  32GB DDR4  |  AMD Radeon RX 6700XT  |  Dual display DP-1 & DP-2=2560x1440
Laptop: Triple boot {Arch & Mint & Windows 11}  |  Dell Latitude 5420  |  Intel Core i5-1145G7  |  16GB DDR4  |  Iris Xe GPU | eDP-1=1920x1080

~ Do or do not, there is no try ~

Offline

Board footer

Powered by FluxBB