---
title: "centos中命令自动补全"
author: "lp895876294"
date: "2016-07-05T16:45:48Z"
tags: []
categories: ["操作系统"]
slug: "centos"
draft: false
lastmod: "2016-07-05T16:45:48Z"
id: 2309362
url: "https://lpyyn.iteye.com/blog/2309362"
---

centos下命令自动提示功能通过安装：

```
# yum install -y bash-completion
# [[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && . /usr/share/bash-completion/bash_completion
```

 bash-completion参考： https://github.com/scop/bash-completion