From cfe166f68a857b09a414c4cbfd7b13d2a01b2fe6 Mon Sep 17 00:00:00 2001 From: mat ess Date: Tue, 29 Nov 2022 22:20:03 -0500 Subject: [PATCH] Fix mkdcd --- home/fish.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/fish.nix b/home/fish.nix index 3dfe11b..10b286b 100644 --- a/home/fish.nix +++ b/home/fish.nix @@ -35,6 +35,10 @@ mkdcd = { argumentNames = [ "target" ]; body = '' + if test -z "$target" + echo "mkdcd requires an argument" 1>&2 + return 1 + end mkdir -p $target cd $target '';