2

Is there any possibility to use all completed hosts with cssh?

E.g: cssh www*

This should establish three connections to www1, www2, www3

If I press Tab after www I get all three possibilities.

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
dvonessen
  • 55
  • 3

1 Answers1

0

If you're using the menu-select completion. At the very least:

zstyle ':completion:*' menu select=0
autoload -Uz compinit
compinit

But see compinstall to better tailor it to your taste (like with colours, approximators, descriptions, headers...).

You can type:

cssh wwwTabTabAlt+AAlt+A...

The first Tab lists the completions (if there's more than one), the second Tab starts to select the first one. If you typed Tab again (though you could also use arrow keys) you could use the next available completion instead. But if you type Alt+A (for AND) instead, it accepts the current completion (inserts it at the prompt) and completes again for the next word at the next completion suggestion.

So you can type Alt+A as many times as there are completions you want to insert.

See

info zsh menu-select

for details.

To insert all the possible completions, see this SO answer

Stéphane Chazelas
  • 522,931
  • 91
  • 1,010
  • 1,501