Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Try To Set A Tmux Window Name In Rust

I add this to my terminal apps to set the name of tmux windows to make it easier to remember what's what

The Code

use std::process::Command;

pub fn try_to_set_tmux_title(title: &str) {
    let args: Vec<&str> = vec!["select-pane", "-T", title];
    let _ = Command::new("tmux").args(args).output().unwrap();
}

Usage

try _ to _ set _ tmux _ title("Some App Name");