The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
2answers
194 views

Preventing bash tab completion of an environment variable with a FS path value from removing the environment variable name

Friends, I am using GNU bash as my shell on Linux: $ bash --version GNU bash, version 4.2.45(1)-release (x86_64-pc-linux-gnu) Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU ...
3
votes
2answers
147 views

Get hostnames into ssh tab-completion (with minimal editing)

I know I could get a list of hostnames into bash tab-completion of ssh by adding them to /etc/hosts, but since they are on DHCP, it's kinda bad practice. Does anyone know another DHCP-aware way, that ...
2
votes
1answer
65 views

In bash, how do I get possible completions to disappear afterwards?

In bash, when I hit tab and the completion is ambiguous, it appears like this on my screen: chris@host / $ cd fo foo/ for/ foz/ chris@host / $ cd fo I then continue typing, but I get to another ...
3
votes
2answers
218 views

Using Linux autocompletion with wordlist AND files of the current directory

I have set auto-completion in my .bashrc as follows: complete -W "$(echo `cat ~/.ssh_complete`;)" scp but this ONLY used the words given in the file ~/.ssh_complete. How is it possible to extend ...
5
votes
1answer
624 views

bash tab completion only works for root

I set up an Ubuntu 12 server (on rackspace cloud using their preconfigured image) and created a non-root user. When I log in as the standard user, pressing [TAB] at the terminal outputs an actual tab ...
2
votes
1answer
306 views

Disable networked tab completion with bash

Networked applications like rsync and scp can tab complete when they are enabled with bash. But what if you want local tab completion without remote tab completion? Is it possible?
1
vote
4answers
366 views

cd + bash completion script

I have web projects in /var/www/projects/some/long/path/strange-project-name Now I want to type in terminal: webs str{TAB} It should autocomplete to the webs strange-project-name (basing on ls ...
2
votes
4answers
3k views

How to edit command completion for ssh on bash?

(I've asked this question regarding zsh, but I also use bash and would find it useful there too--as I'm guessing many others would too since bash has many more users than zsh.) I'd like to set up ...
5
votes
3answers
3k views

How to edit command completion for ssh on zsh?

I'd like to set up command completion on zsh to display host names after I type ssh [TAB] taking the names out of my .ssh/config file (and preferably from known_hosts and /etc/hosts and anywhere ...
2
votes
1answer
636 views

Bash Completion Script Help

So I'm just starting to learn about bash completion scripts, and I started to work on one for a tool I use all the time. First I built the script using a set list of options: _zf_comp() { local ...
2
votes
3answers
1k views

How to get both tab completion and readline editing in mingw/msys shell?

I'm running msys 1.0 on Win2K using the rxvt.exe terminal. By default, tab-completion works, but when I do 'set -o vi' to enable vi-readline editing, tab-completion stops working. Surely I can have my ...
3
votes
1answer
1k views

Stop bash tab completion from thinking I want to cd into .svn directories

I have a folder structure that's in subversion. There are a whole pile of top level directories that have only 1 sub folder. (eg src/com/example). Normally when I want to cd into the example folder I ...
5
votes
3answers
764 views

Getting more helpful tab completion prompts in bash?

Let's say I have a directory with a few files in it like this: $ ls file1 file2 file3 And I want to do some tab completion in bash: $ cat file<tab> file1 file2 file3 I remember ...
4
votes
4answers
2k views

TAB completon and mc problems

DISTRIB_ID=Ubuntu DISTRIB_RELEASE=8.10 DISTRIB_CODENAME=intrepid DISTRIB_DESCRIPTION="Ubuntu 8.10" This is the server version. When I ssh into it, I encounter the following problems: Problem 1 ...