docs: update sysadmin/bash/bash-completion
parent
389cea412e
commit
0eaf2d47ea
|
|
@ -2,14 +2,14 @@
|
|||
title: bash-completion автодополнение
|
||||
description:
|
||||
published: true
|
||||
date: 2023-11-07T10:06:13.218Z
|
||||
date: 2023-11-07T10:15:45.097Z
|
||||
tags: bash, linux
|
||||
editor: ckeditor
|
||||
dateCreated: 2023-11-03T08:47:49.396Z
|
||||
-->
|
||||
|
||||
<h3>Устанавливаем из официальных репозиториев</h3>
|
||||
<p><code>apt install bash-completion</code></p>
|
||||
<pre><code class="language-plaintext">apt install bash-completion</code></pre>
|
||||
<p> </p>
|
||||
<h5><strong>Настройка автозаполнения Bash</strong></h5>
|
||||
<p>Если все прошло успешно, то у вас должен появится файл <code><strong>bash_completion.sh</strong></code>. Он расположен в <code><strong>/etc/profile.d/</strong></code> </p>
|
||||
|
|
@ -17,4 +17,4 @@ dateCreated: 2023-11-03T08:47:49.396Z
|
|||
<figure class="image image_resized" style="width:43.89%;"><img src="/image.png"></figure>
|
||||
<p>Чтобы применить изменения и тем самым включить желаемое автозаполнение, нам требуется добавить несколько вещей в <code><strong>~/.bashrc</strong></code>.</p>
|
||||
<p>Мы можем либо скопировать содержимое скрипта в конец упомянутого файла, либо просто перенести его в файл.</p>
|
||||
<p><code>echo "source /etc/profile.d/bash_completion.sh" >> ~/.bashrc</code></p>
|
||||
<pre><code class="language-plaintext">echo "source /etc/profile.d/bash_completion.sh" >> ~/.bashrc</code></pre>
|
||||
|
|
|
|||
Loading…
Reference in New Issue