You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
241 B
24 lines
241 B
#!/bin/sh
|
|
|
|
while true; do
|
|
# Readline
|
|
read -r -p "git> " cmd
|
|
|
|
# EOF
|
|
test $? -ne 0 && break
|
|
|
|
# History
|
|
history -s "$cmd"
|
|
|
|
# Built-in commands
|
|
case $cmd in
|
|
quit)
|
|
break
|
|
;;
|
|
esac
|
|
|
|
# Execute
|
|
git $cmd
|
|
done
|
|
|
|
echo
|