Closed pffang closed 2 years ago
Greetings!
Can you please confirm:
Are you having issues typing tmux <tab> <tab>
or are you having issues trying to use one of the bash-it tmux aliases (i.e. txl <tab> <tab>
) ?
Assuming the former ...
Can you try disabling the bash-it tmux plugin:
$ bash-it disable plugin tmux
note: Don't forget to restart your shell after disabling the plugin
This plugin creates an alias named tmux
, and I suspect that is interfering with the alias-completion plugin ...
Please give a try and let us know if it helps anything.
Thanks!
I have issues when type tmux <tab> <tab>
. I don't use the aliases of tmux.
Enable/Disable plugin tmux has no any difference to this issue.
I have confirmed via local testing that the tmux plugin + alias-completion plugin definitely breaks tmux auto-completion.
Enable/Disable plugin tmux has no any difference to this issue.
I don't think you fully restarted your bash session after disabling the tmux plugin.
If you see something like this:
$ type tmux
tmux is aliased to `TERM=xterm-256color tmux'
Then then plugin's alias is still active.
And if you see something like this:
$ complete -p tmux
complete -F _alias_completion::tmux tmux
Then then (broken) completion function generated by the alias-completion plugin is still active
One quick thing you can try from a the terminal is:
unalias tmux
complete -F _tmux tmux
This worked for me to quickly fix the existing bash session.
If this also works for you, then you likely need to:
$ bash-it disable plugin tmux
# Exit all bash sessions that use tmux completion
$ exit
Lemme know how it goes - Good luck !
@davidpfarrell After fully restart bash sessions, your solution works for me. Thank you!
@pffang thanks for confirming - closing the issue
Expected behavior
aliases completion and tmux completion can work together.
Current behavior
If aliases completion is enabled, tmux completion doesn't work.
Possible solution
Disable aliases completion by
bashit disable completion aliases
can make tmux completion work again.Context
No response
Steps to reproduce
bashit enable completion aliases tmux
can always reproduce this issue.Bash-it version
Stable v3.0.2
List of enabled plugins, themes and aliases
tmux aliases
Bash version
GNU bash, version 4.4.20(1)-release (x86_64-pc-linux-gnu)
Operating system and version
Ubuntu 18.04.6 LTS
bash-it doctor output
DEBUG: core: main: Loading libraries(except appearance)... DEBUG: lib: colors: Loading library file... DEBUG: lib: command_duration: Loading library file... DEBUG: lib: helpers: Loading library file... DEBUG: lib: history: Loading library file... DEBUG: lib: log: Loading library file... DEBUG: lib: preexec: Loading library file... DEBUG: lib: preview: Loading library file... DEBUG: lib: search: Loading library file... DEBUG: lib: utilities: Loading library file... DEBUG: core: reloader: Loading all enabled components... DEBUG: aliases: bash-it: Loading component... DEBUG: aliases: bash-it: Loaded. DEBUG: aliases: curl: Loading component... DEBUG: aliases: curl: Loaded. DEBUG: aliases: general: Loading component... DEBUG: aliases: general: Command 'gshuf' does not exist DEBUG: aliases: general: Loaded. DEBUG: aliases: git: Loading component... DEBUG: aliases: git: Loaded. DEBUG: aliases: systemd: Loading component... DEBUG: aliases: systemd: Loaded. DEBUG: aliases: tmux: Loading component... DEBUG: aliases: tmux: Loaded. DEBUG: plugin: base: Loading component... DEBUG: plugin: base: Command 'markdown' does not exist DEBUG: plugin: base: Loaded. DEBUG: plugin: colors: Loading component... DEBUG: plugin: colors: Loaded. DEBUG: plugin: git: Loading component... DEBUG: plugin: git: Loaded. DEBUG: plugin: gitstatus: Loading component... DEBUG: plugin: gitstatus: Loaded. DEBUG: plugin: history: Loading component... DEBUG: plugin: history: Loaded. DEBUG: plugin: history-search: Loading component... DEBUG: plugin: history-search: Loaded. DEBUG: plugin: man: Loading component... DEBUG: plugin: man: Loaded. DEBUG: plugin: powerline: Loading component... DEBUG: plugin: powerline: Command 'powerline-daemon' does not exist DEBUG: plugin: powerline: Loaded. DEBUG: plugin: projects: Loading component... DEBUG: plugin: projects: Loaded. DEBUG: plugin: tmux: Loading component... DEBUG: plugin: tmux: Loaded. DEBUG: plugin: xterm: Loading component... DEBUG: plugin: xterm: Loaded. DEBUG: completion: system: Loading component... DEBUG: completion: system: Loaded. DEBUG: completion: bash-it: Loading component... DEBUG: completion: bash-it: Loaded. DEBUG: completion: defaults: Loading component... DEBUG: completion: defaults: Loaded. DEBUG: completion: git: Loading component... WARN: completion: git: completion already loaded - this usually means it is safe to stop using this completion DEBUG: completion: git: Loaded. DEBUG: completion: makefile: Loading component... DEBUG: completion: makefile: Loaded. DEBUG: completion: pip3: Loading component... DEBUG: completion: pip3: Loaded. DEBUG: completion: pip: Loading component... DEBUG: completion: pip: Loaded. DEBUG: completion: pipenv: Loading component... DEBUG: completion: pipenv: Command 'pipenv' does not exist DEBUG: completion: pipenv: Loaded. DEBUG: completion: projects: Loading component... DEBUG: completion: projects: Loaded. DEBUG: completion: ssh: Loading component... DEBUG: completion: ssh: Loaded. DEBUG: completion: tmux: Loading component... DEBUG: completion: tmux: Loaded. DEBUG: core: main: Loading theme 'powerline'. DEBUG: core: main: Loading custom aliases, completion, plugins... DEBUG: core: main: Loading general custom files... DEBUG: custom: example: Loading custom file... DEBUG: core: main: Command 'gloobus-preview' does not exist
Your ~/.bashrc
Notes
No response