согласно документу, !!
должно расширяться до последней команды при нажатии <tab>
после нее. Однако это не относится к моей настройке (я использовал oh-my-zsh по умолчанию). Вот пример:
$ echo 1
1
$ echo 2
2
$ !!<tab>
$ echo 1
Более того, !#
не расширяется до того, что вводится в текущей строке. Вместо этого он расширяется до последней команды
$ echo 1
1
$ echo 2
2
$ echo 3 !#<tab>
$ echo 3 echo 2
Есть ли какая-либо опция, управляющая этим?