summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-05-19 11:05:16 +0200
committerJoe <bousset.rudy@gmail.com>2022-05-19 11:05:16 +0200
commit95723fe29513fee1a407afa19cadb03ea38b4bdc (patch)
treefb8f28531886a9da2525a9631c35d776c39b1e8d
parentupdate (diff)
downloaddotfiles-bsd-95723fe29513fee1a407afa19cadb03ea38b4bdc.tar.gz
dotfiles-bsd-95723fe29513fee1a407afa19cadb03ea38b4bdc.tar.bz2
dotfiles-bsd-95723fe29513fee1a407afa19cadb03ea38b4bdc.tar.xz
dotfiles-bsd-95723fe29513fee1a407afa19cadb03ea38b4bdc.tar.zst
dotfiles-bsd-95723fe29513fee1a407afa19cadb03ea38b4bdc.zip
this func rules
-rw-r--r--.config/zsh/alias.zsh8
1 files changed, 7 insertions, 1 deletions
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"'