#posix-shell #shell #posix #linux-macos #compatible #bash #command

app rushell

rushell is a POSIX compatible shell written by Rust language for Linux and MacOS

6 releases

0.2.2 Jun 15, 2021
0.2.1 May 28, 2021
0.1.2 Oct 22, 2020
0.1.0 Sep 28, 2020

#502 in Unix APIs

MIT/Apache

410KB
10K SLoC

Rushell

rushell is a POSIX compatible shell written by Rust language for Linux and MacOS. It is still under development and it is not fully compatible with Bash.

Features

  • Suggestions
  • Two default fancy prompt
  • POSIX compatible shell (but not perfect yet)
  • Support bash style completer (completer and compgen commands, but not implemented full feature yet.)
  • Support git status prompt and alias of git commands

Config Folder

  • init script
    • $HOME/.config/rushell/init.sh
  • History
    • $HOME/.config/rushell/history

Prompt

Use PROMPT_STYLE environment in $HOME/.config/rushell/init.sh

PROMPT_STYLE=power

power prompt

PROMPT_STYLE=basic

basic prompt

Example init script

This example requires "bat", "exa" and "zoxide" packages.

export PATH=~/bin:~/.cargo/bin:/usr/local/bin:$PATH
PROMPT_STYLE=power
alias less=bat
alias ls=exa
eval "$(zoxide init posix --hook prompt)"

rushell was started from nsh(https://github.com/nuta/nsh). And, it is heavily depend on forked linefeed(https://github.com/murarth/linefeed).

And, it uses a lot of open sources written by Rust.

Contributing

Please feel free to summit issues if you want to suggest features or if you find any critical bugs.

License

rushell is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

Dependencies

~10–21MB
~290K SLoC