shell: Use "--has-foreground" option with "gear install".