a feature provided by interactive programs such as shells and text editors that inserts text in order to complete a word or phrase that the user is likely intending to compose
1
vote
2answers
63 views
remove a host from the completion list for ssh in zsh
I once had some hosts named 'myhost', 'myhost1', etc. And now all those except 'myhost3' become invalid. I removed those from /etc/hosts and ~/.ssh/known_hosts, but zsh still completes them for me. Is ...
4
votes
1answer
151 views
Need help on this bash auto completion script
I'm trying to setup autocompletion for a command, which takes only one parameter, a folder name,
In /secure/kernel_builds/, I have the three following subfolder:
3.5.6/ 3.6.2/ source/
Now I want ...
2
votes
1answer
111 views
Trouble w/ bash programmable completion of filenames matching patterns
I've got a simple command named th. I've got a bash-completion file for it that goes as follows:
_th() {
COMPREPLY=()
local curr=${COMP_WORDS[COMP_CWORD]}
COMPREPLY=( $(compgen -f -X ...
1
vote
1answer
46 views
How to make ZSH tab completion work with two tabs
I saw a question like this on here, but the answer didn't work for me. I'm trying to set up tab completion and I want it that if I have two files fileA and fileB and I type fil<tab> it first ...
-1
votes
1answer
297 views
Phrase Express Equivalent for Linux?
Is there some sort of auto text-insertion program with macros, similar to PhraseExpress for Windows in Linux?
4
votes
0answers
159 views
zsh: how to fix tab completion so it doesn't hide entries?
I'm using oh-my-zsh on Mac OS X with homebrew'ed zsh 4.3.12. I stumbled recently on a weird problem. In scripts/not-used I have several .R files:
breakdowns.R eventloop.R ...
2
votes
0answers
70 views
How to debug and fix slow autocomplete in bash?
After a recent update (Ubuntu 12.04 LTS), TAB complete on the command line is slow. After entering a partial command (e.g evi [TAB]) or partial filename (e.g. evince somedocu[TAB]) the shell, ...
2
votes
0answers
236 views
How to enable local ~ autocompletion for scp?
Whenever I want to copy a file from my home directory, I run into the same issue: scp (using openssh-client 1:5.9p1-5ubuntu1, GNU bash, version 4.2.24(1)-release (x86_64-pc-linux-gnu)) won't ...
2
votes
0answers
82 views
Completing avfs fake directories in zsh
How can I tweak zsh's completion system to complete “fake” files in some circumstances?
More precisely, the AVFS filesystem exposes archives as directories by creating a “fake directory” next to ...
0
votes
0answers
32 views
How to mimic bash tab completion behavior on OS X when using Linux
I'm an OS X user who's used to ssh'ing into various Linux machines. Recently, I installed Ubuntu on one of our servers and have noticed very different tab completion behavior in bash. Among other ...