Giter Club home page Giter Club logo

bsh's Introduction

bsh

Run bun shell as a standalone interactive shell.

bunx @tr1ckydev/bsh

Commands

Caution

Many commands are under development and might not work as expected. If you find any issue report them in Bun's GitHub repository.

The following bash commands are available natively in bun shell.

Command Description
cat Concatenate files and print on the standard output.
touch Create, change and modify the timestamps of a file.
mkdir Create directories, if they do not already exist.
export Display or export environment variables.
cd Change the current working directory.
echo Display a line of text.
pwd Output the current working directory.
which Display the full path of (shell) commands.
rm Remove files or directories.
mv Move or rename files and directories.
ls List directory contents.
exit Exit the shell with an optional exit code.
true Return a successful result.
false Return an unsuccessful result.

...and all other commands available globally in the system.

Flags

  • --version: Print bsh and bun version.

  • -c: Pass shell command as string to bsh and execute.

    bunx @tr1ckydev/bsh -c "pwd"

Known issues

  • Command history doesn't work with prompt but works with readline on linux which behaves weirdly on windows.

This is an experimental project! File an issue if you find bugs and weird behaviours.

License

This repository uses MIT License. See LICENSE for full license text.

bsh's People

Contributors

ronanru avatar tr1ckydev 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.