Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed bash completion for git-prompt

bash git completion can be enabled from .bash_profile.
Put something following in your profile:

	[[ -f "/etc/bash_completion.d/git" ]] &&
	     . /etc/bash_completion.d/git

	[[ -f "/usr/share/bash-completion/git" ]] &&
	     . /usr/share/bash-completion/git
  • Loading branch information...
commit 8d45f1fc7acdedc21d6ad141b281ecdd19a859ea 1 parent 06a20ea
@lvv lvv authored
Showing with 1 addition and 29 deletions.
  1. +1 −19 git-prompt.sh
  2. +0 −10 index.txt
View
20 git-prompt.sh
@@ -15,6 +15,7 @@
conf=~/.config/git-prompt.conf; [[ -r $conf ]] && . $conf
unset conf
+
##### set defaults if not set
git_module=${git_module:-on}
@@ -384,24 +385,6 @@ parse_hg_status() {
}
-parse_git_complete() {
- if [ "${BASH_VERSION%.*}" \< "3.0" ]; then
- # echo "You will need to upgrade 'bash' to version 3.0 \
- # for full programmable completion features (bash complete) \
- # Please install bash-completion packet like: $ yum -y install bash-completion"
- return
- fi
-
- complete -f -W "$(
- echo `git branch -a | sed -e s/[\ \*]//g | cut -f 1 -d ' ' | uniq`; \
- echo `git remote | sed -e s/[\ \*]//g | cut -f 1 -d ' ' | uniq`; \
- echo `git | tail -23 | head -21 | cut -d ' ' -f 4`; \
- echo '--help'; \
- echo '--staged'; \
- echo 'remote'; \
- echo 'help'; \
- )" g git
-}
parse_git_status() {
@@ -414,7 +397,6 @@ parse_git_status() {
[[ -n ${git_dir/./} ]] || return 1
vcs=git
- parse_git_complete
########################################################## GIT STATUS
file_regex='\([^/]*\/\{0,1\}\).*'
View
10 index.txt
@@ -87,16 +87,6 @@ j .*3 # same as cd "~/long dir mp3"
-------------
-== Bash Completion
-
-Completion can be done for git subcommands, branches and remotes:
-
----------------------
-git ch<tab> # expands to git checkout
-git checkout ma<tab> # expands to git checkout master
---------------------
-
-
== Install
Download link:git-prompt.sh[] or get it with GIT:
Please sign in to comment.
Something went wrong with that request. Please try again.