git alaises are better

This commit is contained in:
Daylin Morgan 2023-06-12 11:04:03 -05:00
parent 2bdfa681f4
commit c5b0843a42
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
2 changed files with 1 additions and 5 deletions

View file

@ -28,6 +28,7 @@ defaultBranch = main
autosetuprebase = always
[alias]
ignore = "!gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}; gi"
root = rev-parse --show-toplevel
adog = log --all --decorate --oneline --graph
lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold magenta)%h%C(reset) ->%C(bold yellow)%d%C(reset) %C(white)%s%C(reset) %C(green)(%ar)%C(reset) %C(dim white)- %an%C(reset)' --all

View file

@ -1,5 +0,0 @@
#!/usr/bin/env zsh
##? use toptal.com api to generate gitignore file
curl -sL "https://www.toptal.com/developers/gitignore/api/$@"