为什么我的 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 寻呼机,请参阅 the dos:
- 打开
~/.aws/config
文件
- 添加
cli_pager=
[default]
部分
在我安装 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 寻呼机,请参阅 the dos:
- 打开
~/.aws/config
文件 - 添加
cli_pager=
[default]
部分