Can I make bash to suppose the command always to be a git command?
I mean:
If I wrote push origin master then it would execute git push origin master?
Note: I would use it in git bash (Windows environment), so I do not need regular commands (ls, cd, etc.) to work.
You may want to try this small git shell, instead:
After that function is defined, run it once, and it will sit in an infinite loop,
reading a command line and passing it as options to the
gitcommand.EDIT: Adding the
-eoption to thereadcommand, as suggested by gniourf_gniourf, gives you a nice Readline-based environment where you can retrieve and edit your history.