如何在dmenu中启用命令选项的自动完成?例如,使用默认选项
systemctl poweroff自动完成仅系统not,而不断电。
发布于 2018-01-06 17:48:22
来自man dmenu:
DESCRIPTION
dmenu is a dynamic menu for X, which reads a list of newline-separated items from stdin. When the user
selects an item and presses Return, their choice is printed to stdout and dmenu terminates. Entering text
will narrow the items to those matching the tokens in the input您想要做的是在dmenu的范围之外,大概您需要一些操作更像终端仿真器的东西(它继承了shell所具有的任何花哨的自动完成功能)。
您可以手动将systemctl poweroff添加到命令列表中,但我怀疑这并不完全符合您的要求。
https://unix.stackexchange.com/questions/415225
复制相似问题