当前位置:网站首页>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"
边栏推荐
- websocket flv 客户端解封包
- MaxWell scraped data
- MongoDB starts an error Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
- Packages - Notes
- 组态 - 笔记
- 存储器映射、位带操作
- 【喂到嘴边了的模块】准备徒手撸GUI?用Arm-2D三分钟就够了
- 嵌入式开发:嵌入式基础知识——正确启动固件项目的 10 条建议
- LeetCode_数位枚举_困难_233.数字 1 的个数
- [Cloud native] Alibaba Cloud ARMS business real-time monitoring
猜你喜欢

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

MongoDB starts an error Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)

分布式前修课:MySQL实现分布式锁

Mysql database query is very slow. Besides the index, what else can be caused?

MongoDB启动报错 Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)

Lock wait timeout exceeded解决方案

基于FPGA的DDS任意波形输出

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

Flink本地UI运行

Mac 中 MySQL 的安装与卸载
随机推荐
Sleuth+Zipkin (visualization) service link tracking
Mysql数据库查询好慢,除了索引,还能因为什么?
DDS Arbitrary Waveform Output Based on FPGA
Redis cache penetration, breakdown, avalanche and consistency issues
科研中一些常用软件清单
GeoServer + openlayers
(科普文)什么是碎片化NFT(Fractional NFT)
定时任务 corn
B+树索引页大小是如何确定的?
数字量输入模块io
ISELED---氛围灯方案的新选择
关于mariadb/mysql的user表:密码正确但登录失败,可能与mysql的空用户有关
微服务该如何拆分?
【重磅来袭】教你如何在RGBD三维重建中获取高质量模型纹理
Nature Microbiology综述:聚焦藻际--浮游植物和细菌互作的生态界面
惊艳!京东T8纯手码的Redis核心原理手册,基础与源码齐下
工具| execsnoop 短时进程追踪工具
Smart Contract Security - Private Data Access
Fink异步IO的实战(关联维表)
[In-depth study of 4G/5G/6G topic-46]: 5G Link Adaption Link Adaption-2-Common Abbreviations