Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking for a 'modernized' cmd.exe and I find myself quite comfortable with Cygwin. However, I can't make Cygwin auto complete some "commands" I need (programs in SysInternal Suite like contig...).

I already added the programs path in PATH variables. It does work since I can use the programs regardless of current folder. But auto completion still ain't work.

A google search bring not much information. So I ask for your helps. Any ideas will be appreciated.

share|improve this question

1 Answer 1

Cygwin bash prompt does allow SysInternal Suite command names to be completed, as it does any other program in the PATH.

However, here are two possible gotchas for a new cygwin user (I am not implying that you are you are one ;) ):

  1. PATH variable must contain the path to the commands, in the 'cygwin format' (mounted under /cygdrive and using forward slashes)

    For example: If the Sysinternals Suite is installed under "c:\Program Files (x86)\SysinternalsSuite":

    export PATH="$PATH:/cygdrive/c/Program Files (x86)/SysinternalsSuite"
    

    Note: Cygwin automatically converts the Windows %PATH% environment variable to the proper format in the bash $PATH variable. So if you have extended the PATH in the Windows GUI, then you are most probably good.

    Double check content of PATH variable at cygwin bash prompt with:

    echo $PATH
    
  2. Completion is case-sensitive. So in the case of your example, you must start typing Contig.exe ... with a capital 'C'.

share|improve this answer
    
Welcome to SU and thanks for your first contribution. I only improved some minor formatting issues in your post. -- +1 for your second point! –  mpy Jan 6 at 15:13
    
@mpy Thanks for the edits –  Ceredig Jan 6 at 15:24
    
Why SU ain't notify the answer? I'll try your suggestion and feedback later :) –  Tiana987642 Nov 23 at 7:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.