Skip to content

Instantly share code, notes, and snippets.

@lamby
Forked from hmarr/gitsh
Created February 11, 2014 18:51
Show Gist options
  • Save lamby/8941457 to your computer and use it in GitHub Desktop.
Save lamby/8941457 to your computer and use it in GitHub Desktop.
#!/bin/sh
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