mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Execute a shell command, if the command is prefixed with !
This commit is contained in:
parent
d8492e68eb
commit
ce888d0664
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue