Skip to content

Instantly share code, notes, and snippets.

@hmarr
Last active August 29, 2015 13:56
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hmarr/8915010 to your computer and use it in GitHub Desktop.
Save hmarr/8915010 to your computer and use it in GitHub Desktop.
Apparently percent signs are the new cool
#!/bin/bash
echo -n "gitsh% "
while read line; do
if [[ "$line" == ":exit" ]]; then
exit
fi
sh -c "git $line"
echo -n "gitsh% "
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment