ohmybash / oh-my-bash

A delightful community-driven framework for managing your bash configuration, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
https://ohmybash.github.io
MIT License
5.86k stars 652 forks source link

scp path completion not working #185

Open Mouradif opened 3 years ago

Mouradif commented 3 years ago

Hi

when using bash without oh-my-bash I can do

$ scp somehost:/ho<Tab>

and it gets autocompleted to

$ scp somehost:/home

but with oh-my-bash it doesn't work even after I include /etc/bash_completion in .bashrc or with

$ . /etc/bash_completion

directly in the terminal as suggested by this stackexchange solution

KuenzelIT commented 2 years ago

I just encountered the same problem after installing oh-my-bash a while ago. This issue is pretty old, doesn't anyone have an idea why it's not working?

akinomyoga commented 2 years ago

This is just because completions/ssh.completion.sh doesn't support it. If you would like to use the completion setting provided by bash-completion, you can remove ssh from the array completions in your .bashrc.

KuenzelIT commented 2 years ago

Thanks a lot. Disabling the ssh completion fixed it:

completions=(
  git
  composer
  #ssh
)

So now I'm just using the default bash completion for ssh instead of the one from oh-my-bash?

I assume the issue can be closed now.