diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index 1ff551c..322381c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -61,10 +61,7 @@ fn eval(paths: &[&str], prompt: &str) { if cmd == "cd" { let path = match args.first() { Some(str) => str, - None => { - println!("cd: Must specify a path"); - continue; - } + None => env!("HOME"), }; match std::env::set_current_dir(path) { Ok(_) => {} |