Rustifier is a tool designed to quickly set up a complete Yazelix environment, integrating Zellij, Yazi, Helix, WezTerm, and Nushell. It offers an easy, opinionated setup with the option to include additional useful Rust-based terminal utilities.
(stale) A previous version of rustifier was tested with:
Component | Version |
---|---|
OS | Pop!_OS 22.04 |
DE | COSMIC |
Zellij | 0.40.1 |
Helix | helix 24.7 (09297046) |
Nushell | 0.96.1 |
Zoxide | 0.9.4 |
Yazi | 0.2.5 |
WezTerm | 20240203-110809-5046fc22 |
Clone this repository:
mkdir ~/rustifier_programs
git clone https://github.com/luccahuguet/rustifier.git ~/rustifier_programs
cd rustifier
Setting up base programs
Run the setup script:
chmod +x setup.sh
./setup.sh
This script will check if Rust, Nushell, and Just are installed. If they're not, it will ask for your permission to install them. These tools are required for Rustifier to function properly.
Restart your shell or run exec $SHELL
(bash)
Install system dependencies:
sudo apt install libssl-dev
sudo dnf install openssl-devel
Note: These may be required for Nushell installation if not already present.
Install Helix
git clone https://github.com/helix-editor/helix ~/rustifier_programs/helix
cd helix
cargo install --path helix-term --locked
Install Wezterm. Click here to see many installation options... or for debian/ubuntu systems:
Configure the apt repo:
curl -fsSL https://apt.fury.io/wez/gpg.key | sudo gpg --yes --dearmor -o /etc/apt/keyrings/wezterm-fury.gpg
echo 'deb [signed-by=/etc/apt/keyrings/wezterm-fury.gpg] https://apt.fury.io/wez/ * *' | sudo tee /etc/apt/sources.list.d/wezterm.list
And then:
sudo apt update
sudo apt install wezterm
Configure WezTerm:
a. Create or open your ~/.wezterm.lua
file
b. Add the following content:
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This will hold the configuration.
local config = wezterm.config_builder()
-- This is where you actually apply your config choices
-- For example, changing the color scheme:
config.color_scheme = 'Abernathy'
-- Spawn a nushell shell in login mode
config.default_prog = { 'nu', '-c', "zellij -l welcome --config-dir ~/.config/yazelix/zellij options --layout-dir ~/.config/yazelix/zellij/layouts" }
-- Others
config.hide_tab_bar_if_only_one_tab = true
config.window_decorations = "NONE"
-- and finally, return the configuration to wezterm
return config
Note: For extra configuration, visit: https://wezfurlong.org/wezterm/config/files.html
Run the installation script:
just
This will some show installation options on your screen, pick your poison :poison: and follow the steps!
Now it seems everything is installed, right? Please reboot your machine for good measure
Includes everything from the Full Install, plus all of the following:
Includes everything from the Full Install, but lets you pick which additional utilities to install from the list above.
For more information on using Yazelix, refer to the Yazelix README.
Rustifier uses cargo-binstall
for installing and updating packages. This approach provides some benefits:
Feel free to open issues or submit pull requests to improve Rustifier. While the aim is for a quick, ready-to-use setup, we're open to suggestions that enhance functionality without compromising ease of use.