This repository contains scripts, dot files, and config files for wezterm and elvish.
Wezterm is written in Rust and elvish is written in Go. Wezterm is a terminal emulator, such as to run on your workstation. Elvish is a shell, such as to use instead of BASH, that also is a unique language for scripting.
The elvish prompt here expects uidgen
from dwarven toolbox for use in the prompt, creating a UUIDv4 for each shell session.
This can be subsituded for something else by replacing "uidgen" in rc.elv
. But the dwarven toolbox and elvish shell are very nice together.
To bootstrap the whole setup on a debian based system, including installing wezterm and elvish and using the configurations (requires sudo):
$ sh pathway.sh $(whoami)
The functions in the elvish rc also expect dwarven-toolbox programs: review
, and chk
.
We also expect kubectl
and ls
programs. This operates much like an alias in bash,
except is a lambda function instead.
The command k
then executes as kubectl
, l
as ls -larth
, f
as review
, and c
as chk
.
See kubectl, ls, and dwarven toolbox
for more information on those programs.
Here is an example of the rc.elv file, setting the prompt and creating the alias functions.
set edit:prompt = { styled ' λ ' yellow }
set edit:rprompt = (constantly ^
(styled (uidgen) blue))
fn k {|@k| e:kubectl $@k }
fn l {|@l| e:ls -larth $@l }
fn f {|@f| e:review $@f }
fn c {|@c| e:chk $@c }