繁体   English   中英

为什么我的 zsh 需要在某些 AWS cli 之后手动单击 Q?

[英]Why oh my zsh require manually click Q after some AWS cli?

在我安装 oh my zsh 之前,我只是运行一些命令,终端有记录

aws sts get-caller-identity


{
    "UserId": "xxxxxxxxxxxxx",
    "Account": "12345678",
    "Arn": "arn:aws:iam::12345678:user/yang.fei"
}

但是我安装oh my zsh的时候需要手动点Q退出

aws sts get-caller-identity

# it will open a new
{
    "UserId": "xxxxxxxxxxxxx",
    "Account": "12345678",
    "Arn": "arn:aws:iam::12345678:user/yang.fei"
}
(END)

# after I click Q, there is no record is terminal history
aws sts get-caller-identity --output json 
aws sts get-caller-identity --output json

您需要禁用 cli 寻呼机,请参阅dos

  • 打开~/.aws/config文件
  • 添加cli_pager= [default]部分

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM