You are not logged in.

#1 2015-01-26 00:13:20

Chimera
Member
From: Run Level 7
Registered: 2010-03-28
Posts: 43

ZSH Remove autocompletion options

Hello, is there a way to remove programs from ZSH's list of autocompletion options? Specifically, when I type "chr" and hit tab, I want ZSH to correct this to "chrome" (my alias for chromium) and not show me chromium, chroot, or chromedriver. I can type these commands out in full if necessary.

Offline

#2 2015-01-26 00:18:36

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: ZSH Remove autocompletion options

compdef -d

Not a Sysadmin issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-01-26 00:31:39

thiagowfx
Member
Registered: 2013-07-09
Posts: 586

Re: ZSH Remove autocompletion options

See also

man 1 zshcompsys

Search for the keyword Jason pointed out.

Offline

#4 2015-01-26 13:43:02

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 341
Website

Re: ZSH Remove autocompletion options

In your ~/.zshrc put

alias crm="chrome"

Save & exit.
In terminal type

source ~/.zshrc

Then type ' crm ' in terminal, chrome will open and you will not lose the zsh autocompletion functionality.
Familiarise yourself with shell aliases, they can be extremely handy.

Offline

Board footer

Powered by FluxBB