How to enable vs terminal git command autocomplete when connected to remote ssh?

Viewed 1815

I am not able to do autocomplete of my git commands on vs code integrated terminal when connected to remote ssh.

Autocomplete works when I am using terminal externally.

Can some help me out here?

1 Answers

Check first where your bahs completion is activated on your remote server rc file.
Check where you do see (on the remote server account directory):

[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"

Is it in:

  • ~remoteAccount/.bashrc
  • ~remoteAccount/.bashrc_profile
  • ~remoteAccount/.profile

microsoft/vscode-remote-release issue 83 seems to indicate only .bashrc is sourced.

In your case, once the remote SSH session is opened in VSCode, try and source manually the file where the bash_completion.sh is declared.

Related