Skip to content

L3afMe/bransh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple shell written in rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages