bash-completion Questions

6

I'd like to get the following behavior from my custom completion Given $ mkdir foo $ touch foo faz/bar faz/baz I'd like to get this $ foo -u <tab><tab> => foo faz/ $ foo -u fa&...
Ineptitude asked 17/10, 2012 at 11:33

2

Solved

I'm using git stashes extensively. Sometimes it becomes annoying to type out stash@{3} when, at first glance, a simple 3 should suffice. Is it possible to use the shorter reference somehow? I know...
Prae asked 30/5, 2018 at 18:54

2

Solved

I'm using git stashes extensively. Sometimes it becomes annoying to type out stash@{3} when, at first glance, a simple 3 should suffice. Is it possible to use the shorter reference somehow? I know...
Corri asked 30/5, 2018 at 18:54

2

What is the way to detect if bash completion package is loaded in my bash shell? As of version 2.1 of bash-completion (included in Debian 8), there is no shell variable to indicate this except BASH...
Strongroom asked 10/3, 2016 at 16:14

2

Solved

With new versions of git new commands have been added which I will probably never use. Is there a way I can disable these commands so that I my tab completion is faster? For ex: before, git check&l...
Fyrd asked 12/6, 2018 at 10:7

1

Solved

I am attempting to write a shell script utility that wraps other shell utilities into a single CLI and am trying to get shell completion to work in zsh and bash. For example, let's say the CLI is ...
Fertilization asked 1/4, 2019 at 1:25

5

Is it possible to make bash auto-completion look like in Cisco IOS shell? I mean to add short descriptions for each completion, like this: telnet 10.10.10. (TAB Pressed) 10.10.10.10 - routerA 1...
Isogonic asked 1/9, 2011 at 7:25

2

My system is Manjaro Linux based on Arch Linux, I use bash and bash-completion. It works perfectly when I type something as regular user (no sudo) $ rfkill <TAB><TAB> block event help...
Lengthways asked 6/8, 2017 at 13:3

1

Solved

I've noticed a really cool feature of bash-completion in bash. Let's say I have a directory with files a.java a.class b.java b.class if I start typing vim a Tab , bash will autocomplete a.java. ...
Ascidium asked 9/10, 2018 at 23:8

3

Solved

I've added a new alias scp_using_rsync, which uses rsync to copy files over SSH with certain options. I wanted to link the bash completion for scp to this alias. It works when I add this line: co...
Maund asked 7/4, 2013 at 2:34

8

Solved

To run a process in the background in bash is fairly easy. $ echo "Hello I'm a background task" & [1] 2076 Hello I'm a background task [1]+ Done echo "Hello I'm a background task" However th...
Into asked 7/10, 2011 at 12:6

1

While trying to configure the programmable completion, I came across a behavior I don't understand. Given those three completion scenarios, this is the way I understand them: $<TAB><T...
Almeta asked 24/6, 2018 at 19:28

4

is there a bash-completion script that supports filename completion? I use mostly mercurial and there I can type: hg diff test/test_<tab> and it will show/complete all modified test files....
Howarth asked 17/5, 2011 at 17:6

3

Solved

Auto-completion in bash (with Tab) works on folders, but not with files. I'm running Ubuntu 13.10 I haven't touched my .bashrc file This is how the bottom part of the .bashrc file looks, with t...
Semeiology asked 26/2, 2014 at 6:13

4

Solved

I make frequent use of command history expansion using the form !n:m, where n is the number of the historical command and m is the number of the argument, or short forms thereof. Is there a way to...
Dollhouse asked 2/4, 2014 at 21:13

5

I'm trying to set up directory completion in tcsh and/or bash (both are used at my site) with a slight twist: for a particular command "foo", I'd like to have completion use a custom function to ma...
Dimitry asked 7/10, 2009 at 2:49

6

Solved

I installed git and git-flow completion adding these line to .bashrc of root and a normal_user on a Ubuntu 12.04 machine: source /etc/git-completion.bash source /etc/git-flow-completion.bash GIT_P...
Garniture asked 26/7, 2012 at 5:12

2

Solved

When you type something, you often use bash autocompletion: you start writing a command, for example, and you type TAB to get the rest of the word. As you have probably noticed, when multiple choi...
Platinum asked 16/7, 2014 at 13:12

1

Solved

Many times I end up writting wrapper function around existing ones, for instance: function gl { some_computed_stuff=... git --no-pager log --reverse $some_computed_stuff "$@" } function m { mak...
Massif asked 1/12, 2016 at 11:22

1

Solved

Since my latest update of Homebrew, I'm suddenly getting the warnings below when attempting to set up path completion as I have always done, with commands (in my bash_profile) such as source $(bre...
Penutian asked 19/9, 2016 at 12:56

9

Solved

At the moment bash takes about 2 seconds to load. I have ran bash with -x flag and I am seeing the output and it seems as though PATH is being loaded many times in cygwin. The funny thing is I use ...
Alleviation asked 20/3, 2013 at 22:43

1

Solved

I'm using bash_completion in order to hit tab and see branch names and directories. That all works. I placed this into my bash_profile in order to connect bash_completion: if [ -f `brew --prefix`/...
Thermosphere asked 1/2, 2016 at 15:18

1

Solved

The current tab-completion while "read -e" is active in bash seems to be only matching filenames: read -e [[TabTab]] abc.txt bcd.txt cde.txt I want the completion to be a set of strings defined...
Victorious asked 7/1, 2016 at 16:36

1

Say bash is configured with the following alias: alias up="git --git-dir /path/to/backup/.git" And that particular repository - and only that repository - has the following git alias: [alias] b...
Ynez asked 29/4, 2015 at 21:23

1

In shell (GNU bash, version 4.2.47(1)-release (x86_64-suse-linux-gnu)), when I hit tab for autocompletion, the "$" is escaped after the variable name is completed, but if there is no completion the...
Efflux asked 8/9, 2015 at 16:42

© 2022 - 2024 — McMap. All rights reserved.