Skip to content

Commit

Permalink
Actualize BASH completion function
Browse files Browse the repository at this point in the history
  • Loading branch information
extsoft committed Jul 26, 2019
1 parent 8dffecb commit 3d4aa45
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions completions/git-elegant.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,8 @@ _git_elegant() {
local data=$(git branch | awk -F ' +' '! /\(no branch\)/ {print $2}')
COMPREPLY=( $(compgen -W "${data}" ${cur}) )
return 0 ;;
push|epush)
COMPREPLY=( $(compgen -W "$(git branch | grep \* | cut -d ' ' -f2)" ${cur}) )
return 0 ;;
check|echeck)
COMPREPLY=($(compgen -W '"--all" "--unstaged" "--staged"' -- ${cur}) )
return 0 ;;
accept-work)
git fetch --all
COMPREPLY=(
$(compgen -W "$(git branch --remotes --list)" -- ${cur})
)
Expand Down

0 comments on commit 3d4aa45

Please sign in to comment.