mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat: fix secrets permissions, move ./packages to flake outputs
This commit is contained in:
13
packages/vg.nix
Normal file
13
packages/vg.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
writers,
|
||||
ripgrep,
|
||||
fzf,
|
||||
gawk,
|
||||
}:
|
||||
writers.writeDashBin "vg" ''
|
||||
file="$(${ripgrep}/bin/rg "$@" | ${fzf}/bin/fzf -0 -1 | ${gawk}/bin/awk -F: '{print $1}')"
|
||||
|
||||
if [ -n "$file" ]; then
|
||||
''${EDITOR:-vim} "$file"
|
||||
fi
|
||||
''
|
||||
Reference in New Issue
Block a user