Skip to content

Commit

Permalink
[fish] added git co to completions
Browse files Browse the repository at this point in the history
  • Loading branch information
jgallen23 committed Mar 11, 2013
1 parent 3491781 commit 454018a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fish/completions/git.fish
Expand Up @@ -93,6 +93,12 @@ complete -f -c git -n '__fish_git_needs_command' -a checkout -d 'Checkout and
complete -c git -n '__fish_git_using_command checkout' -a '(__fish_git_branches)' --description 'Branch' complete -c git -n '__fish_git_using_command checkout' -a '(__fish_git_branches)' --description 'Branch'
complete -c git -n '__fish_git_using_command checkout' -a '(__fish_git_tags)' --description 'Tag' complete -c git -n '__fish_git_using_command checkout' -a '(__fish_git_tags)' --description 'Tag'
complete -c git -n '__fish_git_using_command checkout' -s b -d 'Create a new branch' complete -c git -n '__fish_git_using_command checkout' -s b -d 'Create a new branch'

### co alias
complete -f -c git -n '__fish_git_needs_command' -a co -d 'Checkout and switch to a branch'
complete -c git -n '__fish_git_using_command co' -a '(__fish_git_branches)' --description 'Branch'
complete -c git -n '__fish_git_using_command co' -a '(__fish_git_tags)' --description 'Tag'
complete -c git -n '__fish_git_using_command co' -s b -d 'Create a new branch'
# TODO options # TODO options


### apply ### apply
Expand Down

0 comments on commit 454018a

Please sign in to comment.