Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Unified Diff: README.git-cl.md

Issue 2269593002: Add git cl bash completition. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | git_cl_completion.sh » ('j') | git_cl_completion.sh » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: README.git-cl.md
diff --git a/README.git-cl.md b/README.git-cl.md
index 54e59734fc8c450f9e7dd832a35b80a77f88052f..f8ea82d080a0462ddffb4baff1bd5d74b7a4f211 100644
--- a/README.git-cl.md
+++ b/README.git-cl.md
@@ -97,3 +97,16 @@ then need to change A?
In practice, this comes up pretty rarely. Suggestions for better workflows are
welcome.
+
+## Bash auto complition
+
+1. Ensure that your base git commands are autocompleted
+[doc](https://git-scm.com/book/en/v1/Git-Basics-Tips-and-Tricks).
+2. Add this to your .bashrc:
+
+ # The next line enables bash completion for git cl.
+ if [ -f "$HOME/bin/depot_tools/git_cl_completion.sh" ]; then
+ . "$HOME/bin/depot_tools/git_cl_completion.sh"
+ fi
+
+3. Profit.
« no previous file with comments | « no previous file | git_cl_completion.sh » ('j') | git_cl_completion.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698