Difference between revisions of "Autocompletion (Bash)"

From wikieduonline
Jump to navigation Jump to search
Line 22: Line 22:
 
* [[Aws cli: Auto-prompt]]
 
* [[Aws cli: Auto-prompt]]
 
  [[~/brew/etc/bash_completion]]
 
  [[~/brew/etc/bash_completion]]
 +
[[Bash: $HOME/brew/etc/bash completion: No such file or directory]]
  
 
== See also ==
 
== See also ==

Revision as of 11:15, 4 April 2023

To enable Bash completion on Ubuntu comment out lines in ~/.bashrc

https://kubernetes.io/docs/reference/kubectl/cheatsheet/#kubectl-autocomplete

source <(kubectl completion bash) # setup autocomplete in bash into the current shell, bash-completion package should be installed first.
echo "source <(kubectl completion bash)" >> ~/.bashrc # add autocomplete permanently to your bash shell.
apt install bash-completion
Reading package lists... Done
Building dependency tree
Reading state information... Done
bash-completion is already the newest version (1:2.8-1ubuntu1).
bash-completion set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded
/etc/bash_completion
/etc/bash_completion.d/

Related terms

~/brew/etc/bash_completion
Bash: $HOME/brew/etc/bash completion: No such file or directory

See also

Advertising: