From db652edbf332d5b63f88aa00ebba537e77d45bfb Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Wed, 5 Feb 2020 20:09:42 +0300 Subject: [PATCH] =?UTF-8?q?bash:=20git:=20=D0=92=D1=80=D0=B5=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=BD=D0=BE=20=D0=BE=D1=82=D0=BA=D0=BB=D1=8E=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=B4=D0=BE=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=82=D0=B5=D0=BA=D1=81=D1=82=D0=B0=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=BC=D0=B8=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/shell/bash/bash_completion_custom | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/shell/bash/bash_completion_custom b/etc/shell/bash/bash_completion_custom index 54b2166..aba230b 100755 --- a/etc/shell/bash/bash_completion_custom +++ b/etc/shell/bash/bash_completion_custom @@ -1,6 +1,6 @@ #!/bin/bash ######################### # -# Изменён: Ср 05 фев 2020 14:10:12 +# Изменён: Ср 05 фев 2020 14:38:27 # #complete <что дополнять> <программа> @@ -94,7 +94,7 @@ _updirs() { complete -F _updirs up -_git-commit () { +_git-commit() { if git rev-parse --git-dir 2>&1 >&-; then if [[ $2 == "commit" ]] || [[ $2 == "cm" ]]; then COMPREPLY=("$2 \"$(git log -1 --pretty=format:%B | grep -v "Merge" | grep : | cut -d : -f 1)") @@ -102,5 +102,5 @@ _git-commit () { fi } -complete -F _git-commit git g +#complete -c _git-commit git g