mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-11 03:55:31 +03:00
dmenu: add Chinese translation (#5803)
This commit is contained in:
parent
0a15df6ce3
commit
677a3bcbcb
24
pages.zh/linux/dmenu.md
Normal file
24
pages.zh/linux/dmenu.md
Normal file
@ -0,0 +1,24 @@
|
||||
# dmenu
|
||||
|
||||
> 动态菜单。
|
||||
> 根据文本输入创建菜单,其中每一项都在新行中。
|
||||
|
||||
- 显示 `ls` 命令输出的菜单:
|
||||
|
||||
`{{ls}} | dmenu`
|
||||
|
||||
- 显示包含自定义项目的菜单,并用新行(`\n`)分隔:
|
||||
|
||||
`echo -e "{{red}}\n{{green}}\n{{blue}}" | dmenu`
|
||||
|
||||
- 让用户在多个项目之间进行选择,然后将所选项目保存到文件中:
|
||||
|
||||
`echo -e "{{red}}\n{{green}}\n{{blue}}" | dmenu > {{color.txt}}`
|
||||
|
||||
- 在特定的监视器上启动 `dmenu`:
|
||||
|
||||
`ls | dmenu -m {{1}}`
|
||||
|
||||
- 在屏幕底部显示 `dmenu`:
|
||||
|
||||
`ls | dmenu -b`
|
Loading…
Reference in New Issue
Block a user