1pub mod ansi;
2pub mod claude;
3pub mod config;
4pub mod cost;
5pub mod duration;
6pub mod model;
7pub mod status;
8pub mod tmux;
9
10pub fn ensure_path() {
14 use std::env;
15
16 let current = env::var("PATH").unwrap_or_default();
17 let extra_dirs = ["/opt/homebrew/bin", "/usr/local/bin", "/usr/bin", "/bin"];
18
19 let mut paths: Vec<&str> = current.split(':').collect();
20 for dir in &extra_dirs {
21 if !paths.contains(dir) {
22 paths.push(dir);
23 }
24 }
25
26 env::set_var("PATH", paths.join(":"));
27}