Execute a shell command, if the command is prefixed with !

This commit is contained in:
Florian H 2013-03-03 16:24:07 +01:00
parent d8492e68eb
commit ce888d0664

View file

@ -27,8 +27,11 @@ while true; do
quit) break;;
esac
# Execute
eval git "$cmd"
if [[ $cmd == !* ]]; then
eval ${cmd:1}
else
eval git "$cmd"
fi
done
echo