nushell / nushell/nushell

Attempting to use 'time' results in suggestion of 'date' instead of 'timeit'

Open
#11,671 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A:error-unhelpful
Dominant language
Rust
Stars
40.5k
Forks
2.3k
Avg merge
1d 19h
Merged PRs (30d)
85

Description

Nushell uses timeit for measuring the time it takes a command to finish, while Bash, Zsh and Fish use time.

When trying to use time in Nushell, it says did you mean 'date'?. It should suggest timeit instead, like it does when trying to use the removed benchmark command.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the command-suggestion logic that handles the removed benchmark command and currently suggests date for time. Done means entering time suggests timeit, while the existing benchmark suggestion behavior remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, shell
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.