set `completion-cycle-threshold' in shell-buffers to 4.