cmderdev / cmderdev/cmder

Autocompletion for .ssh/config in bash

Open
#2,869 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

❔ Type: Question 🛠 Type: Feature Request
Dominant language
PowerShell
Stars
27k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

Version Information
Cmder version: 1.3.24.236
Operating system: Windows 11
Cmder Edition

Cmder Full (with Git)

Description of the issue

I have many connections configured in .ssh/config
When I use cmd::Cmder type of terminal autocompletions works, I print ssh, press Tab and see all names of connections. But if I use bash::bash type of terminal, Tab shows folders in current folder:

λ ssh
bin/                config/             LICENSE             vendor/
Cmder.exe           icons/              opt/                Version 1.3.24.236

My environment settings:

set PATH=%ConEmuBaseDir%\Scripts;%PATH%
set LC_ALL=ru_RU.UTF-8
set LANG=ru_RU.UTF-8
set GH=C:\Users\besta\Downloads\cmder\vendor\git-for-windows
set PATH=%GH%\bin;%GH%\usr\bin;%GH%\mingw64\bin;%PATH
How to reproduce

Add any connections to .ssh/config in home directory.

Additional context

No response

Checklist
  • I have read the documentation.
  • I have searched for similar issues and found none that describe my issue.
  • I have reproduced the issue on the latest version of Cmder.
  • I am certain my issues are not related to ConEmu, Clink, or other third-party tools that Cmder uses.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the bash terminal behavior with host entries in ~/.ssh/config, then compare it with the working cmd::Cmder completion shown in the issue. Done means pressing Tab after ssh in bash lists the configured connection names instead of folders from the current directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.