在 Powershell 5.1 中,只要按一下F7,就会显示之前输入的命令的历史记录。我刚刚安装了 Powershell 7.2,但F7不再执行任何操作。F8尽管如此,仍然会根据命令历史记录自动完成。
powershell powershell-7.0
powershell ×1
powershell-7.0 ×1