From fb5804faef4b3892b0ede7824b9ac37072aaa2ca Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Sun, 22 Dec 2024 12:18:28 +0800 Subject: [PATCH] feat(zshrc): use() --- .zshrc2 | 1 + 1 file changed, 1 insertion(+) diff --git a/.zshrc2 b/.zshrc2 index 18e06df..bd60d7b 100644 --- a/.zshrc2 +++ b/.zshrc2 @@ -131,6 +131,7 @@ 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 $@)" } +use() { nix --experimental-features nix-command --extra-experimental-features flakes shell "${(*)@/#%(#b)([^#]#)/nixpkgs#$match}" } # key bindings bindkey "^b" beginning-of-line # ctrl+b