当前位置:网站首页>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"
边栏推荐
- QIIME2得到PICRUSt2结果后如何分析
- golang modules initialization project
- How do luxury giants such as GUCCI and LV deploy the metaverse, should other brands keep up?
- Lock wait timeout exceeded solution
- 难道Redis真的变慢了吗?
- TensorFlow自定义训练函数
- localhost with 127.0.0.1
- 剑指 Offer II 037. 小行星碰撞
- 关于MySQL主从复制的数据同步延迟问题
- 四大首搭加持,美学、安全、操控、效率优势明显,比亚迪海豹售价20.98万元起售!
猜你喜欢
golang modules初始化项目
The highest level of wiring in the computer room, the beauty is suffocating
Mysql数据库查询好慢,除了索引,还能因为什么?
GeoServer
Metaverse Post Office AI space-themed series of digital collections will be launched at 10:00 on July 30th "Yuanyou Digital Collection"
嵌入式开发:嵌入式基础知识——正确启动固件项目的 10 条建议
ISELED---the new choice of ambient lighting scheme
(Crypto必备干货)详细分析目前NFT的几大交易市场
Flink本地UI运行
惊艳!京东T8纯手码的Redis核心原理手册,基础与源码齐下
随机推荐
【云原生】服务行业案例-不可预测的并发场景解决方案
MongoDB starts an error Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
Use of InputStream and OutputStream
难道Redis真的变慢了吗?
GeoServer + openlayers
Our company has used gateway services for 6 years, dynamic routing, authentication, current limiting, etc., a stable batch!
MongoDB启动报错 Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
JUC common thread pool source learning 02 ( ThreadPoolExecutor thread pool )
[Cloud Native] Service Industry Case - Solutions for Unpredictable Concurrency Scenarios
golang modules initialization project
EST综述:eDNA的多种状态以及在水环境中持久性的认知
【云原生】灰度发布、蓝绿发布、滚动发布、灰度发布解释
952. 按公因数计算最大组件大小 : 枚举质因数 + 并查集运用题
Sleuth+Zipkin(可视化) 服务链路追踪
5G-based Warehousing Informatization Solution 2022
Lock wait timeout exceeded解决方案
【重磅来袭】教你如何在RGBD三维重建中获取高质量模型纹理
【嵌入式】适用于Cortex-M3(STM32F10x)的IQmath库
Normal and escaped strings for postgresql
GUCCI、LV等奢侈品巨头如何布局元宇宙的,其他品牌应该跟上吗?