You are not logged in.

#1 2020-10-23 15:44:16

ericmitc
Member
Registered: 2020-10-23
Posts: 2

unwanted autocompletion pressing space in terminal

Hi there,

I am new to this forum so a pleasent <Hello> to everyone.

As written in the subject I have a problem on my Arch - system  when Im using the terminal.

For example, when I want to type:

history | grep restic

I type to

history | grep

and when I press <space> key then it autocompletes to:

history | \grep --color=auto

This is killing my nerves!
Can anyone tell my why this happens or more import How to change this behavior?
The tab-autocompletion works aswell by the way.

Thanks in advance!
ericmitc

Offline

#2 2020-10-23 15:53:51

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

Re: unwanted autocompletion pressing space in terminal

Is this bash, or what shell?  Can you post your profile and shellrc files (as well as any .inputrc file)?

Is grep aliased to what shows up in your last bit of code?  It looks like the shell-expand-line function of readline may be called when you hit the space.

Real long shot: are you using OMZ by any chance?

Last edited by Trilby (2020-10-23 15:56:20)


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

Online

#3 2020-10-23 21:43:06

ericmitc
Member
Registered: 2020-10-23
Posts: 2

Re: unwanted autocompletion pressing space in terminal

Hi and thank you for the quick and helpful reply!

Its Zsh and checking the aliases, there really are entries I never wrote (especially because I never wrote a single one) and one of it indeed is for grep:

ericmitc@Arch_onYoda ~ % alias
grep='grep --color=auto'
grub-update='sudo grub-mkconfig -o /boot/grub/grub.cfg'
la='ls -Ah'
ll='ls -lAh'
mirror-update='sudo reflector --verbose --score 100 -l 50 -f 10 --sort rate --save /etc/pacman.d/mirrorlist'
run-help=man
which-command=whence

I never heard of OMZ but can this be responsible for the aliases?

However. I do really thank you for helping me out! smile

Offline

#4 2020-10-23 21:45:11

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

Re: unwanted autocompletion pressing space in terminal

Which tutorial did you follow to install this sytem?

Last edited by Trilby (2020-10-23 21:49:03)


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

Online

Board footer

Powered by FluxBB