-
-
Save tie-rack/6816696 to your computer and use it in GitHub Desktop.
A little script to help out when you misplace a space.
This file contains 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/zsh | |
COMMAND=$1 | |
COMMAND=${COMMAND[2,-1]} | |
ARGUMENTS=$@[2,-1] | |
echo "\e[33mYou typed: \e[31mgi $@\e[0m" | |
echo "\e[33mYou meant: \e[32mgit $COMMAND $ARGUMENTS\e[0m" | |
echo | |
git $COMMAND ${(z)ARGUMENTS} |
Author
tie-rack
commented
Oct 3, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment