Hacker News new | ask | show | jobs
by steventhedev 3189 days ago
`!exec git` caused my shell to exit. I have a lot of stuff wrapping git in my shell though (including a bash function wrapping git itself!). The author himself only pushed up the change to his own gitconfig a few hours ago. It was previously `!$SHELL -c \"git $*\"`.

My version that works for my setup is `"!f() { git \"$@\"; }; f"`.

Hope this helps anyone who ran into the same issue, although I'm not 100% confident about the quoting.

EDIT: fixed the quoting, as per cryptonector's suggestion

EDIT2: need to quote the quotes for gitconfig to use it correctly

1 comments

Add double quotes around $@.