From 95723fe29513fee1a407afa19cadb03ea38b4bdc Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 19 May 2022 11:05:16 +0200 Subject: this func rules --- .config/zsh/alias.zsh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '.config/zsh') diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh index 6eb21d2..90c923d 100644 --- a/.config/zsh/alias.zsh +++ b/.config/zsh/alias.zsh @@ -75,7 +75,13 @@ alias \ gpp='git push' \ gpo='git push origin' \ gl="git log --graph --format=format:'%C(yellow)%h %C(bold blue)%ah %C(bold green)(%ar)%C(bold yellow)%d%C(reset)%n%s %C(dim white)- %an <%ae>%C(reset)' --all" \ - dgl="dgit log --graph --format=format:'%C(yellow)%h %C(bold blue)%ah %C(bold green)(%ar)%C(bold yellow)%d%C(reset)%n%s %C(dim white)- %an <%ae>%C(reset)' --all" \ + dgl="dgit log --graph --format=format:'%C(yellow)%h %C(bold blue)%ah %C(bold green)(%ar)%C(bold yellow)%d%C(reset)%n%s %C(dim white)- %an <%ae>%C(reset)' --all" +gg() { + git add . + git commit -m "$*" + git push +} +alias \ srcnt='find . -type f -name "*.c" -exec cat {} \; | sed "/^\//d" | sed "/^\*/d" | sed "/^ \*/d" | sed "/^\/\//d" | sed "/^$/d" | wc -l | tr -d " "' \ v='nvim $(fzf --preview="head -$FZF_PREVIEW_LINES {}")' \ tohex='printf "0x%x\n"' -- cgit v1.2.3