From cbc09bc73b06ac7f89b89148e62d44fc9cedcac6 Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Mon, 29 Apr 2024 21:04:27 +0800 Subject: [PATCH] feat(zshrc): journalctl alias --- .zshrc2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.zshrc2 b/.zshrc2 index d000e34..0bbc74e 100644 --- a/.zshrc2 +++ b/.zshrc2 @@ -123,6 +123,11 @@ alias "cbds"='curl https://www.baidu.com' alias "gdebug"='git add -A; git commit --allow-empty -m "bug fix ($(date))"' alias "ls"='ls --color=tty' alias "l"='ls -lAGh --time-style="+%y-%m-%d %H:%M"' +alias "jc"='journalctl' +alias "jce"='jc -e' +alias "jceu"='jc -eu' +alias "jcf"='jc -f' +alias "jcfu"='jc -fu' gbes() { git for-each-ref --sort=-committerdate refs/heads refs/remotes --format="%(authordate:format:%y-%m-%d.%a %H:%M %z)|%(color:red)%(objectname:short)|%(color:yellow)%(refname:short)%(color:reset)|%(color:reset)%(authorname): %(color:green)%(subject)" --color=always | column -ts"|" | less -FX } sagt() { eval "$($DOTFILES/tools/sagent.sh $@)" }