Showing posts with label Rust. Show all posts
Showing posts with label Rust. Show all posts

Saturday, December 07, 2024

Some of my CLI environment set (before I forget)

 First, integrate Zellij into the default shell (https://zellij.dev/documentation/integration) such that as soon as a terminal program (alacritty in my case) is started, Zellij is started.

Second, tweak the Zellij configuration file to make the Nushell the default shell. This way, as soon as Zellij is started, Nu is also started.

Install Starship and integrate it with Nushell (https://starship.rs/guide/). This way, as soon as Nu is started, Starship becomes the default prompt. An example can be found here (https://starship.rs/config/)

Install Yazi and integrate it with Nu, as described here (https://yazi-rs.github.io/docs/quick-start).

The modern CLI stack

Useful article here. The Rust language has really made a difference!

I would also add Amp/Helix editor and Yazi file manager to the list. 

Sunday, December 03, 2023

cargo-update

 As the number of cargo-installed packages increases on my computer, I naturally wonder if there is a convenient way to keep them up-to-date. cargo-update does exactly that. I can first do:

cargo install-update -l

to see if any installed packages are out-of-date. If so, I can then:

cargo install-update <pkg>

to get it updated.

Tuesday, November 28, 2023

Rust, Helix, and Zellij

I know about Rust programming language for many years but did not think it will be a major player in the open source software world simply because there have been so many good programming languages and development tools. I recently stumbled into a couple of really good open source software, including the Helix file editor and the Zellij terminal multiplexer, both were developed using Rust. Also, there are at least two R packages, rextendr and cargo, that facilitate the calling of Rust function from within R. Maybe it is time to pay more attention to Rust. 

The Nushell is another essential component of this Rust-centric free software ecosystem. 

Counter