TIL `$*` captures all positional arguments into a space separated string You can abuse this for a Git alias to avoid typing the commit message in double quotes: Add to .zshrc: alias gc='git add -A && git commit -m "$*"' Then run: `gc my commit message`
Chris Cook

Chris Cook @zirkelc

About: I post things so I don’t forget them

Joined:
May 16, 2021

TIL `$*` captures all positional arguments into a space separated string You can abuse this for a Git alias to avoid typing the commit message in double quotes: Add to .zshrc: alias gc='git add -A && git commit -m "$*"' Then run: `gc my commit message`

Publish Date: Feb 2
0 0

Comments 0 total

    Add comment