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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The individual files in this gist each have a unique trick to offer. They may be moved to official documentation or individual gists at a future date. | |
| This file is mostly added because gists insist on titling the page with the alphabetically first file name, instead of the gist title. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| migrate_loop() | |
| { | |
| # Better readability with separation. | |
| echo "========================"; | |
| # Get the output of the drush status. | |
| drush_output=$(drush ms "$1" --format string); | |
| # Split output string into an array. |

