当前位置:网站首页>tiup completion
tiup completion
2022-07-30 14:50:00 【添香小铺】
为了降低使用成本,TiUP 提供了 tiup completion 命令用于生成命令行自动补全的配置文件。目前支持 bash 和 zsh 两种 shell 的命令补全。
如果是 bash,需要提前安装好 bash-completion:
- 在 macOS 上的安装方式为:如果 bash 版本小于 4.1,执行
brew install bash-completion;如果 bash 版本大于等于 4.1,则执行brew install [email protected]。 - 在 Linux 上的安装方式为:使用包管理器安装
bash-completion包,例如执行yum install bash-completion或者apt install bash-completion。
语法
tiup completion <shell>
<shell> 为 shell 类型,目前支持 bash 和 zsh。
使用方式
bash
将自动补全代码写入一个文件,并且在 .bash_profile 中对其执行 source 命令:
tiup completion bash > ~/.tiup.completion.bash printf " # tiup shell completion source '$HOME/.tiup.completion.bash' " >> $HOME/.bash_profile source $HOME/.bash_profile
zsh
tiup completion zsh > "${fpath[1]}/_tiup"
边栏推荐
- Example of video switching playback (video switching example) code
- 针对 MySQL/InnoDB 刷盘调优
- SEATA distributed transaction
- Nature Microbiology综述:聚焦藻际--浮游植物和细菌互作的生态界面
- R中按照数字大小进行排序
- Flink实时仓库-DWS层(关键词搜索分析-自定义函数,窗口操作,FlinkSql设置水位线,保存数据到Clickhouse)模板代码
- SQL 优化这么做就对了!
- 4 senior experts share the insider architecture design and implementation principles of Flink technology with years of experience in large factories
- 【为宏正名】99%的人从第一天学习C语言就自废的武功
- 定时任务 corn
猜你喜欢

Flink optimization

HTTP缓存小结

How do luxury giants such as GUCCI and LV deploy the metaverse, should other brands keep up?

Redis cache penetration, breakdown, avalanche and consistency issues

Excel使用Visual Basic Editor对宏进行修改

GeoServer + openlayers

golang modules初始化项目

1222. 可以攻击国王的皇后-力扣双百代码

阿里CTO程立:阿里巴巴的开源历程、理念和实践

English语法_不定代词 - both / either / neither
随机推荐
第十一章 api mgmnt API 参考
ECCV2022 | FPN错位对齐,实现高效半监督目标检测 (PseCo)
(Crypto必备干货)详细分析目前NFT的几大交易市场
TensorFlow custom training function
Compile, link, notes - 3
元宇宙的前景及四大赛道
481-82(105、24、82、34、153)
Use of SLF4J
4位资深专家多年大厂经验分享出Flink技术内幕架构设计与实现原理
What is Ts?
视频切换播放的例子(视频切换范例)代码
针对 MySQL/InnoDB 刷盘调优
Could not acquire management access for administration
软件包 - 笔记
JUC常见的线程池源码学习 02 ( ThreadPoolExecutor 线程池 )
异常情况处置方案
华为云重磅发布开源软件治理服务——软件成分分析
1700. 无法吃午餐的学生数量
How to split microservices?
MongoDB启动报错 Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)