mirror of
https://github.com/nushell/nushell.git
synced 2025-02-22 21:41:26 +01:00
updated cmd builtin commands (#2266)
* updated cmd builtin commands * removed cd, chdir, exit, prompt, rem * remove more commands, what remains is useful * cargo fmt is so finicky
This commit is contained in:
parent
16cfc36aec
commit
10fbed3808
@ -380,10 +380,11 @@ pub fn did_find_command(#[allow(unused)] name: &str) -> bool {
|
||||
if which::which(name).is_ok() {
|
||||
true
|
||||
} else {
|
||||
// Reference: https://ss64.com/nt/syntax-internal.html
|
||||
let cmd_builtins = [
|
||||
"call", "cls", "color", "date", "dir", "echo", "find", "hostname", "pause",
|
||||
"start", "time", "title", "ver", "copy", "mkdir", "rename", "rd", "rmdir", "type",
|
||||
"mklink",
|
||||
"assoc", "break", "color", "copy", "date", "del", "dir", "dpath", "echo", "erase",
|
||||
"for", "ftype", "md", "mkdir", "mklink", "move", "path", "ren", "rename", "rd",
|
||||
"rmdir", "set", "start", "time", "title", "type", "ver", "verify", "vol",
|
||||
];
|
||||
|
||||
cmd_builtins.contains(&name)
|
||||
|
Loading…
Reference in New Issue
Block a user