Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 zsh/zle 小部件,它通常/经常连续运行多次。我想使用显示一条消息,zle -M但如果运行我以外的小部件,我想清除该消息。有没有办法做到这一点?
zle -M
我已经翻阅了文档,但我没有看到一个钩子或其他任何东西来解决这个问题。我唯一想到的是将 bindkey 报告的每个键绑定替换为头部补丁包装器,然后在它被击中时恢复它们,但我认为这会导致查看 , 等的小部件出现$WIDGET问题$LASTWIDGET。
$WIDGET
$LASTWIDGET