mirror of
https://github.com/danbulant/nushell
synced 2026-05-19 20:38:40 +00: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue