GithubHelp home page GithubHelp logo

nushell's Introduction

Nu Shell

A shell for the GitHub era. A shell you can hack on.

Status

This project has little of what will eventually be necessary for Nu to serve as your day-to-day shell. It already works well enough for contributors to dogfood it as their daily driver, but there are too many basic deficiencies for it to be useful for most people.

At the moment, executing a command that isn't identified as a built-in new command will fall back to running it as a shell command (using cmd on Windows or bash on Linux and MacOS), correctly passing through stdin, stdout and stderr, so things like your daily git workflows and even vim will work just fine.

There is not yet support for piping external commands to each other; piping is limited to Nu commands at the moment.

Nu currently has the following built-in commands:

  • cd
  • ls
  • ps
  • select ...fields
  • reject ...fields
  • sort-by ...fields
  • where condition
  • skip amount
  • take amount
  • to-array

Goals

Prime Directive: Cross platform workflows, with first-class consistent support for Windows, OSX and Linux.

Priority #1: direct compatibility with existing platform-specific executables that make up people's workflows

Priority #2: Create workflow tools that more closely match the day-to-day experience of using a shell in 2019 (and beyond)

Priority #3: It's an object shell like PowerShell.

These goals are all critical, project-defining priorities. Priority #1 is "direct compatibility" because any new shell absolutely needs a way to use existing executables in a direct and natural way.

A Taste of Nu

~\Code\nushell> ps | where cpu > 0
+-------------------+-----+-------+-------+----------+
| name              | cmd | cpu   | pid   | status   |
+-------------------+-----+-------+-------+----------+
| chrome.exe        | -   | 7.83  | 10508 | Runnable |
+-------------------+-----+-------+-------+----------+
| SearchIndexer.exe | -   | 7.83  | 4568  | Runnable |
+-------------------+-----+-------+-------+----------+
| nu.exe            | -   | 54.83 | 15436 | Runnable |
+-------------------+-----+-------+-------+----------+
| chrome.exe        | -   | 7.83  | 10000 | Runnable |
+-------------------+-----+-------+-------+----------+
| BlueJeans.exe     | -   | 7.83  | 6968  | Runnable |
+-------------------+-----+-------+-------+----------+

~\Code\nushell> ps | where name == chrome.exe | take 10

+------------+-----+------+-------+----------+
| name       | cmd | cpu  | pid   | status   |
+------------+-----+------+-------+----------+
| chrome.exe | -   | 0.00 | 22092 | Runnable |
+------------+-----+------+-------+----------+
| chrome.exe | -   | 0.00 | 17324 | Runnable |
+------------+-----+------+-------+----------+
| chrome.exe | -   | 0.00 | 16376 | Runnable |
+------------+-----+------+-------+----------+
| chrome.exe | -   | 0.00 | 21876 | Runnable |
+------------+-----+------+-------+----------+
| chrome.exe | -   | 0.00 | 13432 | Runnable |
+------------+-----+------+-------+----------+
| chrome.exe | -   | 0.00 | 11772 | Runnable |
+------------+-----+------+-------+----------+
| chrome.exe | -   | 0.00 | 13796 | Runnable |
+------------+-----+------+-------+----------+
| chrome.exe | -   | 0.00 | 1608  | Runnable |
+------------+-----+------+-------+----------+
| chrome.exe | -   | 0.00 | 3340  | Runnable |
+------------+-----+------+-------+----------+
| chrome.exe | -   | 0.00 | 20268 | Runnable |
+------------+-----+------+-------+----------+

~\Code\nushell> ls | sort-by "file type" size
+---------------+-----------+----------+----------+----------------+----------------+----------------+
| file name     | file type | readonly | size     | created        | accessed       | modified       |
+---------------+-----------+----------+----------+----------------+----------------+----------------+
| .git          | Directory |          | Empty    | a week ago     | 2 minutes ago  | 2 minutes ago  |
+---------------+-----------+----------+----------+----------------+----------------+----------------+
| src           | Directory |          | Empty    | a week ago     | 42 minutes ago | 42 minutes ago |
+---------------+-----------+----------+----------+----------------+----------------+----------------+
| target        | Directory |          | Empty    | a day ago      | 19 hours ago   | 19 hours ago   |
+---------------+-----------+----------+----------+----------------+----------------+----------------+
| .gitignore    | File      |          | 30 B     | a week ago     | 2 days ago     | 2 days ago     |
+---------------+-----------+----------+----------+----------------+----------------+----------------+
| .editorconfig | File      |          | 148 B    | 6 days ago     | 6 days ago     | 6 days ago     |
+---------------+-----------+----------+----------+----------------+----------------+----------------+
| Cargo.toml    | File      |          | 714 B    | 42 minutes ago | 42 minutes ago | 42 minutes ago |
+---------------+-----------+----------+----------+----------------+----------------+----------------+
| history.txt   | File      |          | 1.4 KiB  | 2 days ago     | 30 minutes ago | 30 minutes ago |
+---------------+-----------+----------+----------+----------------+----------------+----------------+
| README.md     | File      |          | 2.3 KiB  | an hour ago    | 30 seconds ago | 30 seconds ago |
+---------------+-----------+----------+----------+----------------+----------------+----------------+
| Cargo.lock    | File      |          | 38.6 KiB | 42 minutes ago | 42 minutes ago | 42 minutes ago |
+---------------+-----------+----------+----------+----------------+----------------+----------------+

~\Code\nushell> ls | select "file name" "file type" size | sort-by "file type"
+---------------+-----------+----------+
| file name     | file type | size     |
+---------------+-----------+----------+
| .git          | Directory | Empty    |
+---------------+-----------+----------+
| src           | Directory | Empty    |
+---------------+-----------+----------+
| target        | Directory | Empty    |
+---------------+-----------+----------+
| .editorconfig | File      | 148 B    |
+---------------+-----------+----------+
| .gitignore    | File      | 30 B     |
+---------------+-----------+----------+
| Cargo.lock    | File      | 38.6 KiB |
+---------------+-----------+----------+
| Cargo.toml    | File      | 714 B    |
+---------------+-----------+----------+
| history.txt   | File      | 1.4 KiB  |
+---------------+-----------+----------+
| README.md     | File      | 2.3 KiB  |
+---------------+-----------+----------+

Nu currently has fish-style completion of previous commands, as well ctrl-r reverse search.

autocompletion

nushell's People

Contributors

wycats avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.