Skip to content

Instantly share code, notes, and snippets.

View angelod1as's full-sized avatar
👋
Let's work together?

Angelo Dias angelod1as

👋
Let's work together?
View GitHub Profile
@angelod1as
angelod1as / git-zsh-checkout-autocomplete-local-only.md
Created October 20, 2021 21:32 — forked from jiMuBao/git-zsh-checkout-autocomplete-local-only.md
List only local branches when autocompleting git checkout (Zsh)
git config --global alias.checkoutr checkout
$EDITOR /usr/local/share/zsh/site-functions/git-completion.bash

...and then modify the file as follows...

-__gitcomp_nl "$(__git_refs '' $track)"
+if [ "$command" = "checkoutr" ]; then
+    __gitcomp_nl "$(__git_refs '' $track)"
+else
@angelod1as
angelod1as / react-native-app-in-wsl2.md
Last active June 8, 2021 19:09 — forked from bergmannjg/rearct-native-app-in-wsl2.md
Building a react native app in WSL2