aboutsummaryrefslogtreecommitdiff
path: root/modules/base/fish/functions/nrepl.fish
diff options
context:
space:
mode:
Diffstat (limited to 'modules/base/fish/functions/nrepl.fish')
-rw-r--r--modules/base/fish/functions/nrepl.fish7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/base/fish/functions/nrepl.fish b/modules/base/fish/functions/nrepl.fish
new file mode 100644
index 00000000000..75febe575e4
--- /dev/null
+++ b/modules/base/fish/functions/nrepl.fish
@@ -0,0 +1,7 @@
+function nrepl
+ if test $argv[1]
+ nix repl $argv
+ else
+ nix repl '<nixpkgs>'
+ end
+end