[PATCH] Make bash completion executable (take 2)
Christian Ebert
blacktrash at gmx.net
Fri Dec 4 13:32:47 UTC 2009
# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1259933475 -3600
# Node ID 7ff510fec52f88a24671cdf12d7cb9bb84f9ac22
# Parent 08bbed8ac9b8bc10f89a9fdbcf59b7b9cc50c977
Make bash completion executable
This allows to check for prompt in system-wide bashrc files
if [ "$PS1" ]; then
. /usr/local/share/bash_completion.d/hg
fi
even for non-login shells, which would work only via ~/.bashrc
or ~/.bash_profile otherwise.
diff --git a/contrib/bash/hg b/contrib/bash/hg
old mode 100644
new mode 100755
More information about the Mercurial-devel
mailing list