git: turn start alias into a separate executable

This commit is contained in:
Fernando Schauenburg 2024-02-06 13:59:27 +01:00
parent cb201df3d2
commit c400c8fffd
2 changed files with 7 additions and 1 deletions

7
bin/git-start Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
# Initialize a git repository and automatically create an empty root commit.
# NOTE: requires the `l` alias to be defined (see .gitconfig)
git init && git commit --allow-empty -m "Initial commit" && git l

View file

@ -18,7 +18,6 @@
lla = ll --all lla = ll --all
s = status --short s = status --short
ss = status ss = status
start = !git init && git commit --allow-empty -m \"Initial commit\" && git l
[pretty] [pretty]
basic = %C(auto)%h%d %s %C(8) %ad basic = %C(auto)%h%d %s %C(8) %ad