diff options
Diffstat (limited to 'shellrc.d/dev')
-rw-r--r-- | shellrc.d/dev | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/shellrc.d/dev b/shellrc.d/dev index e66369c..04ce496 100644 --- a/shellrc.d/dev +++ b/shellrc.d/dev @@ -70,3 +70,14 @@ glv() { nvim_config() ( cd ~/.config/nvim && nvim init.vim ) + +if command -v nix 2>/dev/null >&2; then + nrun() { + nix run . -- "$@" + } + nrun_() { + local package="$1" + shift + nix run ".#$package" -- "$@" + } +fi |