From 82a315f06a34699b2099c3eedb45c9217a44352c Mon Sep 17 00:00:00 2001 From: Odin Dutton Date: Tue, 20 Aug 2019 13:11:29 +1000 Subject: [PATCH] Make cd argument optional `cd` with no arugments changes directory to $HOME. --- src/commands/cd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/cd.rs b/src/commands/cd.rs index dab6f35486..718f2846f4 100644 --- a/src/commands/cd.rs +++ b/src/commands/cd.rs @@ -18,7 +18,7 @@ impl WholeStreamCommand for CD { } fn signature(&self) -> Signature { - Signature::build("cd").required("directory", SyntaxType::Path) + Signature::build("cd").optional("directory", SyntaxType::Path) } }