mirror of
https://github.com/nushell/nushell.git
synced 2024-12-31 19:41:36 +01:00
Add is_dir check to auto-cd (#1506)
* Add markdown output * Add is_dir() check
This commit is contained in:
parent
1e343ff00c
commit
afa963fd50
@ -640,6 +640,7 @@ async fn process_line(
|
||||
}) = pipeline.commands.list[0]
|
||||
{
|
||||
if dunce::canonicalize(name).is_ok()
|
||||
&& PathBuf::from(name).is_dir()
|
||||
&& which::which(name).is_err()
|
||||
&& args.list.is_empty()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user