git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Change permissions on git-completion.bash

From
SHStephon Harris <theonestep4@gmail.com>
Date
Apr 4, 2018, 20:05 UTC
Message-ID
<010201629243c44a-4a158009-aa68-4e05-ab54-f15a49ffb606-000000@eu-west-1.amazonses.com>
Updating  git-completion.bash to include instructions to change the permissions on the file when sourcing it in your .bashrc or .zshrc file.
---
 contrib/completion/git-completion.bash | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index b09c8a23626b4..fcd76cf169559 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -18,9 +18,10 @@
 # To use these routines:
 #
 #    1) Copy this file to somewhere (e.g. ~/.git-completion.bash).
-#    2) Add the following line to your .bashrc/.zshrc:
+#    2) Change the permissions of the file to be executable (e.g. chmod u+x  ~/.git-completion.bash)
+#    3) Add the following line to your .bashrc/.zshrc:
 #        source ~/.git-completion.bash
-#    3) Consider changing your PS1 to also show the current branch,
+#    4) Consider changing your PS1 to also show the current branch,
 #       see git-prompt.sh for details.
 #
 # If you use complex aliases of form '!f() { ... }; f', you can use the null

--
https://github.com/git/git/pull/480
Next: Ævar Arnfjörð Bjarmason
Message 1 of 2 in “Change permissions on git-completion.bash”
  1. Change permissions on git-completion.bashStephon Harris, Apr 4, 2018
  2. Ævar Arnfjörð BjarmasonApr 4, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.