Skip to content

Instantly share code, notes, and snippets.

@jordelver
Created August 13, 2015 16:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jordelver/dcc214a4d87ae8aaea63 to your computer and use it in GitHub Desktop.
Save jordelver/dcc214a4d87ae8aaea63 to your computer and use it in GitHub Desktop.
Fish shell tab completions favour Git branches?

In the root of my project I have a directory called features. I also have a Git branch called origin/feature-add-coupon-code-to-report.

When I do git co fe<TAB> the Git branch is matched and completed to git co origin/feature-add-coupon-code-to-report which seems strange to me.

Shouldn't the local directory be matched before the branch give that feature is not present at the start of the branch name?

If I type 3 or more characters then it completes to git co features/.

What is the expected behaviour?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment