aboutsummaryrefslogtreecommitdiff
path: root/shellrc.d/dev
diff options
context:
space:
mode:
Diffstat (limited to 'shellrc.d/dev')
-rw-r--r--shellrc.d/dev11
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