当前位置:网站首页>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"
边栏推荐
- How do luxury giants such as GUCCI and LV deploy the metaverse, should other brands keep up?
- 组态 - 笔记
- English语法_不定代词 - both / either / neither
- 5G-based Warehousing Informatization Solution 2022
- Go to Tencent for an interview and let people turn left directly: I don't know idempotency!
- 如何做好技术选型
- 数字量输入模块io
- 100w的数据表比1000w的数据表查询更快吗?
- Our company has used gateway services for 6 years, dynamic routing, authentication, current limiting, etc., a stable batch!
- Extremely Knowing v2 Analysis
猜你喜欢

基于FPGA的DDS任意波形输出

Example of video switching playback (video switching example) code

Mysql数据库查询好慢,除了索引,还能因为什么?

GeoServer + openlayers

How is the B+ tree index page size determined?

Flink实时仓库-DWS层(关键词搜索分析-自定义函数,窗口操作,FlinkSql设置水位线,保存数据到Clickhouse)模板代码

【云原生 • DevOps】influxDB、cAdvisor、Grafana 工具使用详解

惊艳!京东T8纯手码的Redis核心原理手册,基础与源码齐下

DDS Arbitrary Waveform Output Based on FPGA

Installing and Uninstalling MySQL on Mac
随机推荐
元宇宙的前景及四大赛道
2022最新 | 室外单目深度估计研究综述
Flink实时仓库-DWS层(关键词搜索分析-自定义函数,窗口操作,FlinkSql设置水位线,保存数据到Clickhouse)模板代码
让人上瘾的新一代开发神器,彻底告别Controller、Service、Dao等方法
71页全域旅游综合整体解决方案2021 ppt
数据库日期类型字段设计,应该如何选择?
Distributed pre-course: MySQL implements distributed locks
MaxWell scraped data
localhost与127.0.0.1
5G-based Warehousing Informatization Solution 2022
This editor actually claims to be as fast as lightning!
调试 - 笔记
视频加密的误解
Compile, link, notes - 3
MongoDB启动报错 Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
golang modules initialization project
[Cloud native] Alibaba Cloud ARMS business real-time monitoring
Debug - Notes
GeoServer + openlayers
【云原生】灰度发布、蓝绿发布、滚动发布、灰度发布解释