
On Thu, Nov 29, 2007 at 05:50:30PM +0100, Dominik Bruhn wrote:
Hy, im currently using XMonad and XMonadContrib from darcs.
There seems one problem: The completion for the ssh-prompt is not working at all. Although I have no knowledge of haskell at all I think the code includes this completion but tries to read the ~/.ssh/known_hosts. This file exists but does not contain the ssh-hosts I connected to in cleartext so they get skipped. On the otherside the file ~/.xmonad_history contains all the hosts I conntected to but this file is not taken into account uppon completion.
The history is not used for completions: you may have wrong addresses in you history, or whatever, so I don't think completions using history is the way to go. If it not possible to read the list of know hosts it is not possible to, ehm... create a list of know hosts. I see only two ways out of this problem: a second prompt function, something like sshPrompt', with an explicit list of know hosts: that would not be a flexible solution, but it could provide a solution for situations like yours. A second way could be to actually reading that text. Which only requires to know how it is obfuscated (btw, why should I obfuscate the know hosts of my account?) Do you think this second one is feasible? And what about the first?
Is this a bug or a feature? Is it possible to fix?
the second to the first. "why would you fix a feature?" to the second... Just kidding... I liked the juxtaposition... Cheers, Andrea