Docker

Docker - linux 자동완성 추가

Lalabla 2022. 6. 15. 20:34
반응형

Docker로 처음 linux기반의 OS를 설치할 때 자동완성기능이 없다. 

이 때 bash-completion을 설치해주면 자동완성을 추가할 수 있다. 

 

자동완성 설치

1. bash-completion 설치

apt-get install bash-completion

 

2. /etc/profile에 코드 추가

vim/etc/profile에 아래 코드 추가

 

if [ -f /etc/bash_completion ]; then

. /etc/bash_completion

fi

 

3. 적용

source /etc/profile 실행

반응형