recentpopularlog in

kme : completion   26

linux - Bash completion for path in argument (with equals sign present) - Stack Overflow
Check out the definition of COMP_WORDBREAKS in your environment to see why '--arg=<TAB>' (maybe) isn't working.
bash  programmablecompletion  tabcompletion  completion  maybesolution  workaround 
august 2019 by kme
Programmable Completion (Bash Reference Manual)
Finally, any prefix and suffix specified with the -P and -S options are added to each member of the completion list, and the result is returned to the Readline completion code as the list of possible completions.


See
bash  completion  tabcompletion  programmablecompletion  shellscripting  solution 
august 2019 by kme
compgen: An Awesome Command To List All Linux Commands - nixCraft
<code class="language-bash">########################################
# Task: show all the bash built-ins
########################################
compgen -b
########################################
# Task: show all the bash keywords
########################################
compgen -k
########################################
# Task: show all the bash functions
########################################
compgen -A function</code>
bash  programmablecompletion  completion  tabcompletion  compgen  reference  newbie 
august 2019 by kme
autocomplete - Disable bash tab completion - Unix & Linux Stack Exchange | https://unix.stackexchange.com/
Dennis' solution
<code class="language-bash">
bind 'set disable-completion on'
</code>

can be done on the fly in Bash as well. You do not need to put it in .bashrc.

Musta's solution (bash --noediting) works but also disables command line editing.

Another way is
<code class="language-bash">
bind -u complete
</code>

(unset key binding associated with 'complete')

http://www.gnu.org/software/bash/manual/bashref.html, 4.2 Bash Builtin Commands.
bash  configsetting  configfile  completion  tabcompletion  itsslow  fuckina  solution 
november 2018 by kme
xenoterracide: Making re.pl usable
Update 2017-10-25: Finally found out how to keep Ctrl+C from terminating the REPL--add the "Interrupt" plugin.

You will probably need to install Sys::SigAction, because that doesn't seem to be pulled in as a dependency of Devel::REPL.

On a Mac, you will need to install Term::ReadLine::Perl.

<code class="language-perl">
# put this in $HOME/.re.pl/repl.rc
use 5.012;
use warnings;

load_plugin qw(
Colors
Completion
CompletionDriver::INC
CompletionDriver::LexEnv
CompletionDriver::Keywords
CompletionDriver::Methods
DumpHistory
History
LexEnv
ReadLineHistory
Interrupt
);</code>
perl  repl  config  configfile  movein  syntaxhighlighting  history  completion  solution  fuckina  essential 
december 2016 by kme
osx - How to get git-completion.bash to work on Mac OS X? - Super User [http://superuser.com/]
sudo port install git-core +bash_completion

Then add the following to your ~/.profile or ~/.bash_profile:

# MacPorts Bash shell command completion
if [ -f /opt/local/etc/profile.d/bash_completion.sh ]; then
. /opt/local/etc/profile.d/bash_completion.sh
fi

mac  osx  macos  git  bash  completion  configfile  bashrc  solution 
june 2016 by kme
howto/bash-completion – MacPorts
You really do need to set the startup command in iTerm or whatever. I thought I was getting burned by MacPort's bash_completion package, but it needs a newer version of Bash than what's provided with OS X 10.11.whatever.
mac  osx  bash  completion  autocomplete  howto  dotfiles  solution 
march 2016 by kme
10 Useful Linux Bash_Completion Complete Command Examples (Bash Command Line Completion on Steroids)
$ complete -W "bubble quick" ./sort_numbers.sh


My solution:
complete -W "$(ls $HOME/.local/composure/*.inc | sed 's/.*\/\(.*\)\.inc/\1/')" reference revise
bash  completion  reference  shell  configfile  solution 
march 2016 by kme
davidhalter/jedi-vim · GitHub
A note on CentOS (or any distro with an out-of-date Python interpreter): you need to 'pip install jedi' probably as root, since the packaged version of Vim will probably be looking in the 'site-packages' for that version of Python, not your ~/.local/share (from a 'pip --user' install).
autocomplete  completion  plugin  editor  ide  vim  python  devel  essential  movein 
july 2015 by kme
Rob on Programming: Inputrc for bash history completion using up/down arrows

# Source:
# http://robertmarkbramprogrammer.blogspot.com/2008/08/inputrc-for-bash-history-completion.html

# By default up/down are bound to previous-history
# and next-history respectively. The following does the
# same but gives the extra functionality where if you
# type any text (or more accurately, if there is any text
# between the start of the line and the cursor),
# the subset of the history starting with that text
# is searched (like 4dos for e.g.).
# Note to get rid of a line just Ctrl-C
"\e[B": history-search-forward
"\e[A": history-search-backward

$if Bash
# F10 toggles mc on and off
# Note Ctrl-o toggles panes on and off in mc
"\e[21~": "mc\C-M"

#do history expansion when space entered
Space: magic-space
$endif

# Include system wide settings which are ignored
# by default if one has their own .inputrc
$include /etc/inputrc
bash  completion  history  shell  inputrc  configfile  mc  movein 
april 2013 by kme

Copy this bookmark:





to read