Cygwin: no tab completion options when using tilda

Hi,

I am using cygwin on windows machine. Tab completion works as expected in almost all areas, except for when I use tilda (~) to access files/dir under my home dir. When i type 'cd ~/' and hit TAB nothing happens, no completion options are given.

I can type just 'cd' and it will change to my home dir. Also the output of 'echo $HOME' shows my home dir correctly. Finally if i type 'cd ~/' and press ESC then '/' I get completion options... very strange. I have found no solution to this despite searching.

Any ideas?

Try rxvt terminal avalible from cygwin setup.
I'm having no issues with this setup and customized .Xdefaults (for color and style)

$ cd ~/test/test <tab>
test2/ test3/ 

.Xdefaults i took long time from some site (place in your $HOME)

! ~/.Xdefaults - X default resource settings
Rxvt*geometry: 100x30
Rxvt*background: #000020
Rxvt*foreground: #ffffbf
Rxvt*borderColor: Black
Rxvt*scrollColor: Black
Rxvt*troughColor: Gray
Rxvt*scrollBar: True
Rxvt*scrollBar_right: True
Rxvt*font: Lucida Console-15
Rxvt*SaveLines: 200000
Rxvt*loginShell: True
! VIM-like colors
Rxvt*color0:    #000000
Rxvt*color1:    #FFFFFF
Rxvt*color2:    #00A800
Rxvt*color3:    #FFFF00
Rxvt*color4:    #0000A8
Rxvt*color5:    #A800A8
Rxvt*color6:    #00A8A8
Rxvt*color7:    #D8D8D8
Rxvt*color8:    #000000
Rxvt*color9:    #FFFFFF
Rxvt*color10:   #00A800
Rxvt*color11:   #FFFF00
Rxvt*color12:   #0000A8
Rxvt*color13:   #A800A8
Rxvt*color14:   #00A8A8
Rxvt*color15:   #D8D8D8
! eof

Hope that helps.
Regards
Peasant.

1 Like

Or, if you don't want/need a full X11 server install, try mintty (it's in the repo). It's a standalone Cygwin Terminal emulator.

Thanks for the replies. I have tried xvrt but that did not solve the problem. It has the exact same issue...

Strange, I was tried rxvt-native and that didnt work. But when I tried rxvt it did work! mintty did not work. I am still unsure why. But thanks for the help.