0.0.4 • Published 1 year ago

@tr1ckydev/bsh v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

npm.io

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.

!TIP Use up/down arrow keys to navigate command history.

The following bash commands are available natively in bun shell.

CommandDescription
catConcatenate files and print on the standard output.
touchCreate, change and modify the timestamps of a file.
mkdirCreate directories, if they do not already exist.
exportDisplay or export environment variables.
cdChange the current working directory.
echoDisplay a line of text.
pwdOutput the current working directory.
whichDisplay the full path of (shell) commands.
rmRemove files or directories.
mvMove or rename files and directories.
lsList directory contents.
exitExit the shell with an optional exit code.
trueReturn a successful result.
falseReturn an unsuccessful result.
yesRepeatedly output a line with given string, or 'y'.
seqPrint a sequence of numbers.
dirnameStrip last component from a path.
basenamePrint last component from a path.

...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

  • Using cd or other commands don't affect the next commands in the same session due to this issue.

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.

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago