3
votes
2answers
102 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
87 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
61 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 ...
5
votes
1answer
462 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
254 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
342 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 ...
2
votes
1answer
619 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 ...
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
758 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 ...