Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 2.14 KB

README.md

File metadata and controls

48 lines (35 loc) · 2.14 KB

Bransh

A simple shell written in Rust

Building

As this is still a very early beta there are no releases yet and Bransh has to be built from source.

Prerequisites

  • Rustc
  • Cargo

To build the latest nightly, run the following

git clone https://github.com/L3afMe/bransh
cd bransh
cargo build --release

Installing

Bransh can be run as normal or be set to default shell with the following

(Currently can't be run from inside Bransh as >> isn't implemented yet)

cp target/release/bransh /usr/bin/bransh
sudo echo /usr/bin/bransh >> /etc/shells
chsh -s /usr/bin/bransh

Config

Config can be modified from branshrc.br which is located in ENV:XDG_CONFIG_DIR/bransh/ (~/.config/bransh/branshrc.br by default).
All lines in here will be executed as if they're run in shell. When you first run Bransh, a config will be created with the default values but you can also refer to the wiki for values that exist and their defaults.

Example branshrc.br

set PROMPT "{WD} | "                                                                                                            
                                                                                                                                
set P_HOME_TRUNC true                                                                                                           
set P_HOME_CHAR  "~"                                                                                                            
                                                                                                                                 
set P_DIR_TRUNC 2                                                                                                               
set P_DIR_CHAR  "…"                                                                                                             
                                                                                                                                 
set SYN_HIGHLIGHTING true