当前位置:网站首页>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"
边栏推荐
- 调试 - 笔记
- SEATA distributed transaction
- Huawei issues another summoning order for "Genius Boys"!He, who had given up an annual salary of 3.6 million, also made his debut
- 【云原生】灰度发布、蓝绿发布、滚动发布、灰度发布解释
- 1700. 无法吃午餐的学生数量
- TensorFlow custom training function
- MySql报错:SqlError(Unable to execute query“, “Can‘t create/write to file OS errno 2 - No such file...
- MySql error: SqlError(Unable to execute query", "Can't create/write to file OS errno 2 - No such file...
- MongoDB启动报错 Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
- 【嵌入式】适用于Cortex-M3(STM32F10x)的IQmath库
猜你喜欢

如何写一份高可读性的软件工程设计文档

【云原生】服务行业案例-不可预测的并发场景解决方案

视频切换播放的例子(视频切换范例)代码

存储器映射、位带操作

Huawei issues another summoning order for "Genius Boys"!He, who had given up an annual salary of 3.6 million, also made his debut

智能合约安全——私有数据访问

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

【云原生】灰度发布、蓝绿发布、滚动发布、灰度发布解释

Lock wait timeout exceeded解决方案

MongoDB启动报错 Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
随机推荐
使用 protobuf 进行数据序列化
Configuration - Notes
ECCV2022 | FPN错位对齐,实现高效半监督目标检测 (PseCo)
针对 MySQL/InnoDB 刷盘调优
Smart Contract Security - Private Data Access
JVM performance tuning
Excel使用Visual Basic Editor对宏进行修改
nodejs环境变量设置
Use of InputStream and OutputStream
难道Redis真的变慢了吗?
What is Ts?
JUC common thread pool source learning 02 ( ThreadPoolExecutor thread pool )
MongoDB starts an error Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
《二舅》刷屏了!
ISELED---氛围灯方案的新选择
Flink optimization
Redis cache penetration, breakdown, avalanche and consistency issues
Kubernetes应用管理深度剖析
微服务该如何拆分?
golang modules initialization project