0
votes
2answers
52 views

bash autocompletion + command history using sudosh on AIX

We configured sudosh on AIX as login shell with /usr/bin/bash as their default shell. All is working fine except bash autocompletion and command history are not working anymore. TAB is TAB, arrows ...
0
votes
1answer
32 views

bash: smart autocomplete based on history?

I once found an amazing bash option, but now I can't remember how to renable it. It extended autocomplete to look at your most recent history. So if you'd previously typed open index.html and then ...
1
vote
1answer
67 views

Zsh autocomplete function with sed

I'm struggling to write an ZSH autocomplete function. My goal is to autocomplete ta's and tk's first argument with the projects listed in tmux list-sessions and tmuxinator list. Here's what I have so ...
0
votes
2answers
42 views

Zsh: how to auto complete after a command?

everyone. It's a little difficult to explain what I want to do. I want to create a script 'example', which can input long commands for you after you run it with short parameters. For example, $ ...
0
votes
1answer
60 views

Restricting MSYS (Bash) auto-completion to current directory

I'm using MSYS on Windows 7 and I really enjoy the TAB auto-completion feature of the bash console. However it appears that this feature queries all directories in Windows' $PATH variable, requiring ...
1
vote
0answers
84 views

Unintended autocomplete or alias in Terminal

There is a "strange" autocomplete function in my macbook. If I try to type "ps -aux" in terminal (iTerm or TotalTerminal) with the hit of "s" in ps, automatically this happens: "ps -p $$ # Tells the ...
1
vote
1answer
118 views

Disabling “oh-my-zsh” SVN completion

I am using Zsh version: 4.3.11 with the oh-my-zsh framework. When coupled with "oh-my-zsh", Zsh will attempt to autocomplete SVN (and Git for that matter) commands when the TAB key is pressed during ...
0
votes
1answer
81 views

bash tab completion is showing commands instead of files and folders

I used chmod to make some scripts executable, and now my bash shell is tab-autocompleting all available commands. How can I make it go back to completing just files / folders in the current folder?
0
votes
0answers
53 views

How can I fix my filename completion?

Updated to Fedora 19 recently, and some filename completion no longer works the way I expect it to. If I attempt to use it with, say, emacs - then it's fine. emacs a<tab><tab> - lists ...
2
votes
2answers
307 views

How can I disable that “Display all possibilities” and --More— stuff in bash?

In my shell, l + tab completes like: wim@wim-zenbook:~$ l Display all 135 possibilities? (y or n) With a prompt, and then I have to answer y or n which is annoying, it pages through with --More-- ...
3
votes
0answers
179 views

Bash auto-completion af variables adds additional white space at the end

when I perform an auto-completion of a bash variable an additional white space is added at the end. $FO[TAB] -> $FOO" " I added the quotes in order to denote the white space. The problem is ...
0
votes
0answers
342 views

bash autocompletion is slow, freezing my desktop

sometimes when working with a custom kernel, pressing tab in the bash autocompletes at a horrible pace. It freezes the whole desktop. Then comes back after awhile. This is the only quirk that I've ...
3
votes
0answers
19 views

How do I skip the requirement to hit tab twice on a soft link autocomplete? [duplicate]

When I am in the bash terminal (Mac) and I am selecting a file, I can easily type the first part of a directory and hit tab to have it auto complete, for example: cat ~/Desk [tab] -> cat ...
2
votes
1answer
105 views

How to get the result from bash auto-completion as a string?

What I'm looking for is not how to add autcompletion in bash for another program, but a way to get the result of what would have happened in bash to a string, basically: autocomplete "/etc/apa" ...
3
votes
1answer
576 views

Can I make a custom “directory alias” like '~' in bash?

In bash I can go to my home directory with cd ~ and actually refer to my home directory with any command with ~. Can I make new, custom "directory aliases" (?) to refer to other directories? ...
3
votes
1answer
315 views

Bash 4.2 doesn't complete directory names

I have a problem with bash completion after a system upgrade. $ mkdir abcde $ cd abc[TAB] does nothing, while in the older bash versions it would expand to $ cd abcde. Some older forum on ...
3
votes
2answers
332 views

Bash autocomplete for different directories

I've played with bash autocomplete now for a while, but couldn't find a solution for my problem. I have a project directory with subfolders like this: projects/ruby/project1 projects/ruby/project2 ...
1
vote
1answer
127 views

Make emacs autocomplete cpp files over binary files

My question is similar to this one, except for emacs instead of vim. The issue is that I have a cpp file that I want to open and when I type f[TAB] it autocompletes to foo the binary file foo instead ...
2
votes
2answers
475 views

How to fuzzy complete filenames in bash like vim's ctrlp plugin?

Say my pwd is at ~/myproject/ and I have a file in ~/myproject/scripts/com/example/module/run_main_script.sh In vim with ctrlp plugin, I can press Ctrl+P, type run_main_ Enter, I am editing that ...
0
votes
1answer
63 views

Autocomplete environment variable with shift held

I'm using Ubuntu bash, and when I try to autocomplete an environment variable while holding shift, the variable does not expand. Instead, I have to release the shift key. Is there any way to allow the ...
1
vote
0answers
94 views

Remote Subversion URL Completion in Bash

Has anybody added Bash completion support for remote urls in svn commands? It could typically be implemented through parsing of calls to svn ls.
2
votes
1answer
399 views

Bash filename tab completion

I have noticed sometimes that tab completion is helpfully filtered in bash. I am a java programmer and often use the java and javac commands in the terminal for quick or remote tasks. Say I have the ...
2
votes
1answer
104 views

bash compgen -d — '~' always produce empty output

bash$ compgen -d -- '~' Produces empty output. bash$ compgen -d -- '~mi' Also produces empty output. bash$ compgen -d -- '~mice/' ~mice/.pulse ~mice/.mozilla ~mice/Pictures Is OK. bash$ ...
2
votes
1answer
121 views

How to make bash list possible file completions while staying on the same line

Every time I hit tab to list the possible filename matches of the dir that I'm in against the specified partial filename, bash lists the possible matches and breaks onto a new line. Does anyone know ...
4
votes
2answers
1k views

Can bash (or a terminal) auto-complete (tab-complete) from terminal buffer contents?

Imagine I have a bash session in a terminal, just after some output: $ grep foo *.txt this.txt: something123 foo $ After this grep, let's say that my next command will take something123 as an ...
1
vote
1answer
120 views

Unix (Debian) autocomplete paths thru symlinks

By default, directory symlinks on unix systems are treated as files as far as the autocomplete feature goes. For example, having a directory symlink at /srv/link/, typing /srv/liTAB does only complete ...
1
vote
2answers
334 views

Disable Bash's autocompletion based on command

Bash in my Fedora 16 seems to autocomplete arguments based on the command itself. So if I for example type cd Tab … it will only show directories. There are however far too many commands where ...
2
votes
2answers
123 views

ls working strangely

I'm used to typing ls Doc, and tabbing a couple times to complete to ls Documents/. However, now my ls is completing that same statement to ls Documents with a space at the end of Documents, so I can ...
8
votes
3answers
344 views

Is it possible to configure the way bash completes directory names?

I'd like to instruct bash to use a special method to perform completion on certain directory names. For example, bash would call a program of mine to perform completion if a path starts with "$$", and ...
0
votes
1answer
393 views

Is there a resolution to autocomplete in bash escaping export variables?

Export variables in bash are now escaped with auto-completion (tab). A change linked to in another post here at Superuser. Is there any change to this issue?
3
votes
1answer
162 views

Why does ~username/ change to /home/username if tab-completing a path with a space in it?

In ~jacksonc/temp/ there are two files, test.txt and space test.txt, both placed there through Windows (using Samba). Using bash, if I type cat ~jacksonc/temp/t[tab] , it autocompletes to cat ...
2
votes
1answer
704 views

Bash autocomplete paths “through” environmental variables

I used to be able to type cd $home/p hit the tab key and the command would change to cd /home/phill Now it doesn't. When cd'ing to a directory based on an environmental variable, I'm "flying ...
4
votes
1answer
1k views

Bash autocomplete like zsh

I'm using bash, but I'd like to have zsh style autocomplete (you hit tab and it tabs through the possibilities), rather than what bash seems to do, which is display a list of possibilities but not ...
11
votes
2answers
2k views

Bash autocomplete on symlink to directory complete to whole directory, including slash [duplicate]

Possible Duplicate: Tab-completion with directories/links when I've a symlink foo linking to a directory bar/ and I start typing f and hit tab, it completes to foo but I'd like to complete ...
9
votes
1answer
315 views

What is Alt+Shift+{?

Tested this on CentOS and Ubuntu, if you're in a directory with a ton of files $ ls day1.tar.gz day2.tar.gz day3.tar.gz day4.tar.gz day5.tar.gz day6.tar.gz day7.tar.gz day8.tar.gz day9.tar.gz ...
11
votes
5answers
2k views

How to expand * on Bash command line

I understand that if you type ls * it is actually expanded to ls a b c when the current directly has files a, b and c. I was wondering if there is a way to expand this before I hit enter. Similar to ...
3
votes
1answer
223 views

may I let cygwin-bash not recognize DLLs as executable and auto-complete them

using GNU bash 3.2.29(20)-release from cygwin 1.5 on a windows-xp sp3 japanese installation. being a linux user, I know in cygwin and *nix, all files with +x mod can be executable. so it is ...
8
votes
2answers
1k views

Tab-completion with directories/links

I have this problem with tab-completion in terminal in both archlinux and ubuntu: I have a link which links to a directory named "something" in my home directory. Now when I open a terminal and want ...
7
votes
3answers
4k views

Bash Auto-complete Adds Trailing Slash After Filename

I recently upgraded my system from Etch to Lenny. Now when I use auto-complete, file names (not directories) appear with a trailing slash on the command line. It seems to be related to multiple ...
8
votes
1answer
1k views

bash completion processing gone bad, how to debug?

It all started with a simple alias gv='gvim --remote-quiet' and now gv Space Tab gives nothing where it normally should give filenames. Oddly, alias gvi='gvim --remote-quiet' works as expected. ...
1
vote
1answer
1k views

Git pull auto complete OSX

Follow some instruction on this site http://denis.tumblr.com/post/71390665/adding-bash-completion-for-git-on-mac-os-x-leopard . I can do git auto complete for MAC OS. However, when I type git pull ...
0
votes
4answers
3k views

Mac OSX terminal bash-completion not working

I just followed the instructions @ this question in order to get git autocompletion in the terminal. Here are the steps I've undertaken: port install bash-completion Added if [ -f ...
9
votes
3answers
2k views

Bash shell tab completion, don't expand the ~

I use the Tab key a lot when I use the shell (bash). But I'm getting annoyed that ~ always gets expanded to /home/"user". I don't think it's always been like this; is there any way to stop this ...
-1
votes
4answers
3k views

why zsh git autocompletion is not as good as bash? [closed]

zsh is recommended all over the place and is supposed to be one of the more advanced shells out there. Why then I find it that zsh autocompletion lacking in many areas that I'm used to with bash? in ...
5
votes
2answers
3k views

how to make vim's auto-complete behave like bash's default auto-complete?

When you type :e some/path/file<Tab> if there are several matches, vim just picks the first one and you have to cycle through the rest of them with the Tab key. (pretty much like the behavior of ...