Permalink
Browse files

[fish] added git co to completions

  • Loading branch information...
1 parent 3491781 commit 454018aa633bfce6a89de287739afb375b22d279 @jgallen23 committed Mar 11, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 fish/completions/git.fish
@@ -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_tags)' --description 'Tag'
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
### apply

0 comments on commit 454018a

Please sign in to comment.